开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜