how to make text box mandatory on dropdown change
-
Hi I have one dropdown contain status information. Status are 1. Finished 2. Open 3. Progress Also one date textbox. I want to set the text box is editable and mandatory when i select the status as finished in the dropdown. Otherwise it should accept null values(not mandatory) and read only. Can any one help me please. its urgent. It should be in C# or java script Regards K7
kesavan
-
Hi I have one dropdown contain status information. Status are 1. Finished 2. Open 3. Progress Also one date textbox. I want to set the text box is editable and mandatory when i select the status as finished in the dropdown. Otherwise it should accept null values(not mandatory) and read only. Can any one help me please. its urgent. It should be in C# or java script Regards K7
kesavan
-
Hi I have one dropdown contain status information. Status are 1. Finished 2. Open 3. Progress Also one date textbox. I want to set the text box is editable and mandatory when i select the status as finished in the dropdown. Otherwise it should accept null values(not mandatory) and read only. Can any one help me please. its urgent. It should be in C# or java script Regards K7
kesavan
You can simply implement it using AJAX Update Panel or JavaScript. You need to check the Selected value from dropdown list, and based on that you have
enable/disable
the Textbox. To avoid the un-necessary postback you have to use AJAX Updatepanel or Javscript :)Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.