Click event on select option element in chrome

前端 未结 13 948
闹比i
闹比i 2020-11-22 11:38

I\'m having a problem in Chrome with the following:

var items = $(\"option\", obj);  

items.each(function(){

    $(this).click(function(){

           


        
相关标签:
13条回答
  • 2020-11-22 12:17

    Workaround:

    $('#select_id').on('change', (function() { $(this).children(':selected').trigger('click'); }));

    0 讨论(0)
提交回复
热议问题