Form is not Submitting except in Firefox
I have the following code:
$('input#submit').click(function()
{
//check if compulsory forms are filled
if ( //checks if forms are filled)
{
alert("You need to fill all the required fields before Submiting");
return false
}
else
{
$('input#submit').attr('disabled','disabled');
$('#submitnotification').html('Processing Form Submission Please Wait").hide().fadeIn('slow');
return true;
}
});
the whole idea is to submit the form in the *else* block if the condition that all compulsory fields are filled (which is checked in the IF block)...but this only works in Firefox. in chrome and IE, the code execution does not go pass the "Processing Form Submission Please Wait" that is shown. The *return true* line never gets executed which is the one that actually send the form...
What could be wrong