I am trying to bind the another dropdown list on selected item of dropdown 1. Please give me code, if some one has.
Dropwdown 1:
<select id="lst_consultantcontact" name="lst_consultantcontact" onchange="GetConsultantContactInfo()" >
<option >.....</option>
</select>
** Javascript Code:**
<script language="javascript">
function GetConsultantContactInfo() {
var ConsultantId = document.getElementById('lst_consultantcontact').options[document.getElementById('lst_consultantcontact').selectedIndex].value;
var hiddenfield = document.getElementById('hidden1');
hiddenfield.value = ConsultantId;
}
</script>
Drop Down List 2:
<select id="lst_consultantcontact2" name="lst_consultantcontact2" >
<option>..</option</select>
I want to bind this dropdown list