Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dynamically change option values in drop down list

Tags:

jquery

php

Hi I want to add multiple drop down lists to my html page. Which they are contained same option values. (name,email,state,city,country,phone) condition is when user select "name" in first drop down list it should be disabled in all other drop down list. Assume when user select "email" in second drop down list, both email and name should be disabled in other drop down lists. I only select one option value for one drop down list. Previously selected option values should be disable in other drop down lists.

please can anyone help me???

like image 545
Chanaka Avatar asked Nov 28 '25 01:11

Chanaka


1 Answers

Something like this? http://jsfiddle.net/NW7QC/2/ . But instead of test, get the values from the other select elements.

like image 118
Nobita Avatar answered Nov 30 '25 16:11

Nobita



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!