i want to change the default value of dropdown list to 0 i.e selected index value shud become 0 when press the cancel button so that watever i selected previously is removed
here is the javsacript
function CloseDiv() {
var control = document.getElementById("divReqStages");
control.style.visibility = "hidden";
var control1 = document.getElementById('DDLReqStages').selectedIndex;
control1.value='0';
}
here s asp.net code
<input type="button" name="btnCancel" style="font-size: xx-small" onclick="JavaScript:CloseDiv();" value="Cancel" />