Hi, I am checking an empty field on the form and warning the user. but when the user warns, he publishes the data, I can not return false, so as not to refresh the page
$('#loginAccount').submit(function() {
$(this).find(':input:text').each(function(i) {
if($(this).val()=="") {
$('#alert3').html('Please fill all fields.');
return false;
}
});
});
source
share