optionTemplate: function(optionEl) {
return optionEl.text() + ‘
‘; } })
你可以在 <select> 下拉框框选项改变的时候监听 change.fs 事件:
<select class=”my-select” disabled>
<option>First Option</option>
<option>Second Option</option>
</select>
var mySelect = $(‘.my-select’);
mySelect.fancySelect().on(‘change.fs’, function() {
$(this).trigger(‘change.$’);
}); // trigger the DOM’s change event when changing FancySelect










