Client Side Coding > Javascript & Ajax
plz tell me why form is being submit
(1/1)
khalidhabib.cs:
plz tell me why form is being submit
$(document).ready(function() {
$("#frm").submit(function() {
$(":input").each(function() {
if($(this).val() === ""){
alert("Empty Fields!!");
return false;
}
});
});
});
or plz tell me hw to validate auto generated form elements in javascript
Navigation
[0] Message Index
Go to full version