Click event on select option element in chrome

前端 未结 13 1138
闹比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:08

    What usually works for me is to first change the value of the dropdown, e.g.

    $('#selectorForOption').attr('selected','selected')

    and then trigger the a change

    $('#selectorForOption').changed()

    This way, any javascript that is wired to

提交回复
热议问题