why form being submit plz tell me
Posted: Wed Jul 25, 2012 12:36 am
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
$(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