2013-03-27 110 views
-1

我有以下代码,在选择小部件下拉列表中,我必须选择标签,但它的值被选中....任何工作周围PLZ ..在萤火虫我正在正确地传递给它,当你有一个复选框/单选按钮可以选择函数调用,使得一些事情错.....jQuery UI小部件中的选择事件处理程序

_autoSelect: function (e, ui) { 
      ui.item.label.selected = true; 

      //Fires select event for entire widget 
      this._trigger("select", e, { 
       item: ui.item.label 
      }); 
     } 

回答

0

使用jQuery:

$('.yourClass').attr('checked')) { 
     // your code to fire  
    } 

有关事件处理的,你应该建立一个功能,当你的班级被点击以检查它是否被选中然后激发你的代码