plz tell me why form is being submit

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

Sponsor our Newsletter | Privacy Policy | Terms of Service