Possible bug with <select>

后端 未结 3 1998
走了就别回头了
走了就别回头了 2021-02-05 14:06

Chrome Version (type about:Version 28.0.1491.0 canary and 26.0.1410.65 Google Chrome): Operating System (Mac OS X Mountain Lion): The problem only occurs with Chrome Canary and

相关标签:
3条回答
  • 2021-02-05 14:49

    I found an simple workaround by creating a hidden text and just before a submit or change set it to the selected value.

    0 讨论(0)
  • 2021-02-05 14:54

    I was having the same issue, and came across this issue while searching Google. For anyone else stumbling across this: I fixed the issue by setting 'autocomplete="off"' on the form. Of course, this may not be desirable for all situations.

    I'm running Chrome 30.0.1599.101 on OSX 10.9. The web site is built using the Wicket framework (which uses jQuery for AJAX).

    0 讨论(0)
  • 2021-02-05 14:54

    Simple jQuery workaround.

    $(document).ready(function () {
        $("select").each(function () {
            $(this).val($(this).find('option[selected]').val());
        });
    })
    
    0 讨论(0)
提交回复
热议问题