I have the following HTML
<form onsubmit="call_it()" action="listing.php" method="get">
In the called function the alert('3')
is not getting called. The jQuery each
function is working perfectly but not sure why nothing is getting executed after that.
function call_it() {
alert('2');
$('.form_field').each(function(i, obj) {
if (this.value == "") {
document.getElementById(this.id + '_blank').style.display = "block";
}
});
alert('3');
///other statements
}