The onclick event does not work for options

后端 未结 5 1530
长情又很酷
长情又很酷 2020-12-02 02:27

Following is my code which works fine in firefox but not in chrome. Kindly let me know how to solve this issue. The main idea is to call a js function based on the selected

5条回答
  •  时光取名叫无心
    2020-12-02 03:16

    $(document).ready(function(){
        $("#qtype").change(function(){
            $(this).find('option:selected')
            // do something....
        }
    })
    

提交回复
热议问题