Reputation: 123
I have Html.DropdownList control, base on the dropdown selection I need to set the length of the text box.
Ex: I have different registration number information in drop down
StudentRegestrationID
StaffRegistrationID
GustID
When even ever I select StudentRegestrationID
its set the (Html.Textbox) control maxLength
to 8, else for other two I need to set max length as 5.
Here maxlength
of the control must be decide by the dropdown selection value.
I need to implement it JQuery any code help are appreciated.
Upvotes: 1
Views: 32