sachin lad
02-17-2005, 07:43 AM
hello,
I am newbie to java script can anyone help me with this..i have select control as ..
<select name="element" >
<option value =id1> name1</option>
<option value =id2> name2</option>
<option value =id3> name3</option>
</select>
what i want is to retrieve the name1,name2,name3..when corresponding id1,id2,id3.. is selected. I require both id/name pair. i was thinking to have a "hidden" type input, which i will change using onchange() event to reflect value of name.
Is there anyway to read "name1/name2/name3" whichever is selected? please reply..
Thanking you in advance
sachin
I am newbie to java script can anyone help me with this..i have select control as ..
<select name="element" >
<option value =id1> name1</option>
<option value =id2> name2</option>
<option value =id3> name3</option>
</select>
what i want is to retrieve the name1,name2,name3..when corresponding id1,id2,id3.. is selected. I require both id/name pair. i was thinking to have a "hidden" type input, which i will change using onchange() event to reflect value of name.
Is there anyway to read "name1/name2/name3" whichever is selected? please reply..
Thanking you in advance
sachin