Dropdown list problem
-
Hi friends I have two dropdown list and one check box both dropdown have same records when i select item in dropdownlist and then i check checkbox,on checkbox event i want to get same selected item in other dropdowlist. my code is DD2.Items(DD2.SelectedIndex).Text = Me.DD1.SelectedItem.Text Pathan
-
Hi friends I have two dropdown list and one check box both dropdown have same records when i select item in dropdownlist and then i check checkbox,on checkbox event i want to get same selected item in other dropdowlist. my code is DD2.Items(DD2.SelectedIndex).Text = Me.DD1.SelectedItem.Text Pathan
-
Hi I want to do it in javascript. Thanks 4 ur reply pathan
-
Hi friends I have two dropdown list and one check box both dropdown have same records when i select item in dropdownlist and then i check checkbox,on checkbox event i want to get same selected item in other dropdowlist. my code is DD2.Items(DD2.SelectedIndex).Text = Me.DD1.SelectedItem.Text Pathan
try this var DD1List = document.getElementById('DD1'); var DD2List = document.getElementById('DD2'); var index = DD1.selectedIndex; DD2.options[index].selected=true;
Regards, Rashida Jabeen http://www.akaas.net[^]
-
try this var DD1List = document.getElementById('DD1'); var DD2List = document.getElementById('DD2'); var index = DD1.selectedIndex; DD2.options[index].selected=true;
Regards, Rashida Jabeen http://www.akaas.net[^]
Hi rashida Thanks for ur reply its work fine now i want to remove that item when i uncheck checkbox and selected index should be -1 of 2nd dropdownlist. Pathan