Hi Jarry;
Any suggestions on how I can extend eui so that I can use this inline like this:
<input id="test1" class="easyui-combobox" data-options="data:[{value:1,text:'one'},{value:2,text:'two'}]">
<input id="test2" class="easyui-combobox" data-options="cloneFrom:'#test1'">
<input id="test3" class="easyui-combobox" data-options="cloneFrom:'#test1'">
<input id="test4" class="easyui-combobox" data-options="cloneFrom:'#test1'">
EDIT $.extend($.fn.combobox.methods, {
cloneFrom: function(jq, from){
return jq.each(function(){
$(this).combo('cloneFrom', from);
$.data(this, 'combobox', $(from).data('combobox'));
$(this).addClass('combobox-f').attr('comboboxName', $(this).attr('textboxName'));
});
},
I just spotted a problem with cloneFrom() - if you select a value in a cloned combo, it selects a record in the source combo and not itself ??