HiI have DropdwonList with elements, 1,2,3 and 4.. and I have another DropdownList with options Normal, Standard, Emegency, and expendited.Can you help me with javascript code, so that when I select "1" option on the first dropdown, the "Emegency" option on the second dropdown is set/selected.Thanks in advance
When using jQuery, then the snippet below should work. It says that when I change the first select element, then locate out the elemnt with id=second and set it's value to the value of current select element. <form> <table> <tbody> <tr> <td> <select id="first" name="year" onchange="$('#second').val($(this).val());"> <option value="1">1</option> <option value="2">2</option> <option value="3">2</option> <option value="4">2</option> </select> </td> </tr> <tr> <td> <select id="second" name="section"> <option value="1">Normal</option> <option value="2">Standard</option> <option value="3">Emergency</option> <option value="4">Expedited</option> </select> </td> </tr> </tbody> </table> </form> PHP: If you want to learn jQuery, go here: http://jquery.com/