I'm using jQuery .submit() for some form validation.
The validation has two checks:
- Checks for null values in the input files
- If not null, compared the selected files against a stored list
The validation functions both work fine, however, the submit event requires two clicks of the submit button to trigger if all the input fields have a value.
$(document).ready(function() {
$('form').submit(function() {
alert("Submitted");
});
});
I even stripped it down and changed to a click function and got the same result.
$(document).ready(function() {
$('#submitbutton').click(function(){
alert("Clicked");
});
});
Anyone else had this? I'm using IE8.