EasyUI Forum

General Category => Bug Report => Topic started by: gasoline on February 19, 2013, 09:21:32 AM



Title: about load checkbox data in "form plugin"
Post by: gasoline on February 19, 2013, 09:21:32 AM
$('#id').form('load',data);  when checkbox, err
----------------------------------------------
Fix eg:
-------------------------
if(f.val()==String(val)){
$.fn.prop?f.prop("checked",true):f.attr("checked",true);
}
-------------------------
to
-------------------------
if(f.val()==String(val) || $.inArray(f.val(),val)>=0){
$.fn.prop?f.prop("checked",true):f.attr("checked",true);
}
-------------------------


Title: Re: about load checkbox data in "form plugin"
Post by: stworthy on February 20, 2013, 07:17:40 PM
This issue has been fixed, please download the updated form plugin from http://www.jeasyui.com/easyui/plugins/jquery.form.js