Posted on: 6/13/2013 5:08:45 AM | Views : 361

hello friends,
i need to chek textbox empy
i have phone1, phone2,mobile1,mobile2 if all is empty then give error message and viseversa
i already write function for another purpose which is calling on button click. how can i add code for textboxes in it...
<script type="text/javascript"> function ValidateDropDown() { var cmbID = "<%=ddlpaymentmode.ClientID %>"; var val1 = 0 if ($('#<%= CompSubNo.ClientID %>')[0].checked) { if (document.getElementById(cmbID).selectedIndex == 0) { alert("Please select Any one of payment Mode"); return false; } } else if ($('#<%= CompSubYes.ClientID %>')[0].checked)
return true;
} </script>
...

Go to the complete details ...