Home >Web Front-end >JS Tutorial >Analysis and solutions to the causes of jquery submit failure under ie6_jquery
ie6,
$('a.btn').click(function(){
form.submit();
})
Click fails;
Analysis:
Microsoft's lower version browser will first execute the link tag's own event, which is the href event, thus interrupting the form's submit event. "return false;" means interrupting the link tag's own event execution.
Solution: Change your thinking and use jquery to directly handle clicks on images, text, etc.
$('a.btn').click(function(){
$('form').get(0).submit();
return false;
});