var Pname = document.getElementById('<%=txtdate.ClientID %>').value; if (Pname == " " ) { alert("Please Enter Date."); return false; } var vechileno = document.getElementById('<%=txtVehicleNo.ClientID %>').value; if (vechileno == " " ) { alert("Please Enter Vehicle Number."); return false; } var ddlItemtype = document.getElementById('<%=ddlItemtype.ClientID%>'); var ddlitem = ddlItemtype.options[ddlItemtype.selectedIndex].value; if (ddlitem == 0) { alert("Please Select Item."); return false; } var ddltrader = document.getElementById('<%=ddltradername.ClientID%>'); var ddlproductype1 = ddltrader.options[ddltrader.selectedIndex].value; if (ddlproductype1 == 0) { alert(" Please Select Trader Name."); return false; } }
Jquery is a java script library
JavaScript
document.getElementsByTagName("input");
document.getElementsByTagName("select");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)