Asp.Net Hein

Asp.Net Hein

  • NA
  • 266
  • 166.4k

How to make enable and disable for controls in MVC 5 ?

Jun 16 2016 2:52 AM
I want to control my 'Search' button to be enable and disable in MVC.
 
I have two textbox - ( fromdate and todate ). If there is no value in these text textbox, I want to make the button 'Search' to be disable. If there are values in these two textbox, I want to make the button 'Search' to be enable. 
 
If anyone have idea to know how to implement, kindly let me know. Thanks a lot for viewing my question. 

Answers (1)