At a very high level here is what happens
This code works just fine ...
<div id='showme'></div>
<div id='theform'>
<form ...>
<input required ...
<input required ...
<input id='thebutton' type='submit' ....
</form>
</div>
The above code works fine. If I click submit and form field is empty I get the standard notification.
Throw this in and it partially works ...
$(document).ready(function(){
$('#thebutton').click(function() {
$('#theform').hide();
$('#showme').html('<img src="loading2.gif">');
});
.
.
.
And the image show just like I want it to. However, I lose all the checks against the required fields.
Can someone please assist with this? AlL I want to do is show a loading animated gif when the user click the submit button.
Thanks
JT