for example , use the file in easyui release demo :jquery-easyui-1.4.2/demo/combobox/basic.html
I want to register an event for the commbox,
but I don't want to write any javascript code in html element's markup like : data-options='onChange:function(){...}'
so I write code like this:
$(document).ready(function() {
$('#state').combobox({
onChange:function(){
console.log('ok');
}
});
});
then , the combobox show the selected option's value 'AK',but not 'Alaska'。
dose the combobox can't be init twice ?