How to make textbox 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
-
u can put the validation based on the status code of dropdown while submitting the form using javascript.if the status is finished then put check on text box should not be blank.
rahul
This is a C# forum. Why would you suggest JavaScript? Unless you have assumed that the OP is writing a Web App, in which case you should point him towards the Web Development forum. :)
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”