Gcobani Mkontwana

Gcobani Mkontwana

  • 568
  • 1.9k
  • 406.5k

how to make a texbox active when insert with text?

Sep 23 2020 2:38 AM
Hi Team
 
I want to make my Next button active, only when a user select both radio-button and textbox. i want to know jquery side of things, with my following logic i have below.
  1. <div class="col-sm-3">  
  2. @Html.RadioButtonFor(m => m.CourseAdmin.LoginID, "LoginID")  
  3. <label for="LoginID" class="col-form-label">LoginID</label>  
  4. </div>  
  5. <div class="col-sm-3">  
  6. @Html.RadioButtonFor(m => m.CourseAdmin.SIS_ID, "SIS_ID")  
  7. <label for="SIS_ID" class="col-form-label">SIS_ID</label>  
  8. </div>  
  9. <div class="col-sm-12">  
  10. @Html.TextAreaFor(m => m.eNtsaAdmin.eNtsaTextAreaDisc, new { @class = "form-control", style = " font-weight: bold; width:450px" })  
  11. </div>  
  12. ;div class="modal-footer">  
  13. <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>  
  14. <button type="button" class="btn btn-primary">Next</button> 

Answers (7)