开发者

Chrome - Jquery .submit()

开发者 https://www.devze.com 2023-03-12 10:14 出处:网络
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:

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();
});
0

精彩评论

暂无评论...
验证码 换一张
取 消