本文介绍了下拉选择的chenaged没有开火的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hi
Hi
<asp:DropDownList ID="ddlManufaturemonth" runat="server" AutoPostBack="true" CssClass="select_box"
Width="80px"
onselectedindexchanged="ddlManufaturemonth_SelectedIndexChanged" onchange="javascript:return ValidateMonthandYear(this);">
</asp:DropDownList>
在这个只有一个事件正在解雇,我想要点火这里所选择的改变都没有解雇。可以任何人帮我
问候,
Rahul。
in this only one event is firing that is on change i want fire the both here selected change is not firing.Could any one help me
Regards,
Rahul.
推荐答案
<script language="Javascript">
__doPostBack('__Page', 'MyCustomArgument');
</script></script>
以下是解释:
[]
function ValidateMonthandYear() {
debugger;
var bReturn=true;
var monthformat = { 'Jan': 01, 'Feb': 02, 'Mar': 03, 'Apr': 04, 'May': 05, 'Jun': 06, 'Jul': 07, 'Aug': 08, 'Sep': 09, 'Oct': 10, 'Nov': 11, 'Dec': 12 };
document.getElementById('<%=lblDateofPurchaseValidation.ClientID%>').innerHTML = '';
document.getElementById('<%=lblMonthandYearofManufacturingvalidation.ClientID%>').innerHTML = '';
//this is the selected Date
var Manufyear = document.getElementById('<%=ddlManufatureyear.ClientID%>').value ;
var Manufmonth = document.getElementById('<%=ddlManufaturemonth.ClientID%>').value;
var ManufDay = document.getElementById('<%=ddlManufatureDay.ClientID%>').value;
if (Manufyear != "0" && Manufmonth != "0" && ManufDay != "0") {
var date = Manufyear - +Manufmonth - +ManufDay;
}
else {
bReturn = false;
}
return bReturn;
}
这篇关于下拉选择的chenaged没有开火的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!