} // end of JS function function SelectSpecial(){ // ON or after selection of qualification this function will work removeAllOptions(document.form1.Specialization); addOption(document.form1.Specialization, "", "-Select-", ""); // Collect all element of Specialization for various QualificationId } function removeAllOptions(selectbox) { var i; for(i=selectbox.options.length-1;i>=0;i--) { selectbox.remove(i); } } function addOption(selectbox, value, text ) { var optn = document.createElement("OPTION"); optn.text = text; optn.value = value; selectbox.options.add(optn); }