Categories | Question details Back To List | ||
DHTML Combo onSelect Hi, I have a HTML form, which has Two elements. 1. D HTML combo box with auto complete mode. 2. HTML Text Box If the user select any value from the D HTML Combo box, i want to set the D HTML Combo's associated value to the HTML Text box. For example XML <complete> <option value = "1">A</option> <option value = "2">AA</option> <option value = "3">AAA</option> <option value = "4">AAAA</option> </complete> If the user select AAAA, then the curresponding value for AAAA = 4 will be placed in the HTML Text Box. How to achieve this? Please advice. Answer posted on Nov 15, 2007 02:08 With latest combo version it may look similar to next combo.attachEvent("onChange",function(){ someInput.value=combo.getSelectedValue(); }); |