I have three <select> input fields: <select name=first>,<select name=second>and<select name=three>.
The 2nd and 3rd fields are disabled. If the user changes the value of the first field, the 2nd field should be enabled and so on. Is there an example related to this task? thanks
I have three <select> input fields: <select name=first> , <select name=second> and <select name=three>
Share
In its easiest way, you can bind an event handler to the elements for the
changeevent and adjust thedisabledproperty:DEMO
I also suggest to disable the fields via JavaScript, otherwise, if users have JavaScript disabled, they cannot use the form.