Chrome - Jquery .submit()
The .submit() function doesn't seem to be working for me in Chrome. I've made sure that the name of my submit button isn't submit. Here's the Jquery:
$(document).ready(functio开发者_C百科n() {
$('option').click(function() {
$('form#analytics').submit();
});
});
If you are wanting a form to submit when the user changes a <select>
element, you might want:
$('select').change(function(){
$('form#analytics').submit();
});
精彩评论