我正在使用插件Portfilter。它可以在IE,FF中使用select标记,但不能在Chrome中使用。有人知道怎么了吗?
JS
$('select#car_value').change(function(){
$.fn.portfilter(this.options[this.selectedIndex]);
});
的HTML
<select id="car_value">
<option value="abarth" data-toggle="portfilter" data-target="abarth">Abarth</option>
</select>
ps。我有30多个选项标签,这只是一个例子
我将javascript部分更改为:
$('select#car_value').change(function(){
$(":selected", this).portfilter('filter');
});
它也包含在插件初始化部分中,并且可以正常工作。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句