I've been stuck with this issue for almost 3 days!
I have an input button: <input type="button" id="submit" value="Upload"/>
Using jQuery 1.6.1, in the document.ready, I'm binding the button to submit the form like this:
$('#submit').click(function() {
$('form').submit();
});
Using FireBug, the line $('form').submit()
; causes an error with jquery!
After 3 days of trying to figure out the issue, it seems that naming the input button id="submit" is what's causing the bug! When I changed the id to something else, it worked!
Any technical explanation to this?