Title: easyui "form" clear problem Post by: mars610 on October 21, 2011, 10:33:11 AM Hi,
I recently used easyui form of usage, use the clear method, found that after emptying the form data elements which can not be re-set the properties。for example: <script type="text/javascript"> $('#ff').form('clear'); $('#bb').attr('checked',true); </script> html: <form id="ff"> <input id="bb" type="checkbox" value="0"> </form> I found $('#bb').attr('checked',true); is not work. The checkbox is not checked and when I using the "iButton" plug, if use "clear" method, iButton effect in Firefox would fail. That is, can not choose Title: Re: easyui "form" clear problem Post by: stworthy on October 21, 2011, 06:49:27 PM As of jQuery 1.6, use the 'prop' instead of 'attr' method:
$('#bb').prop('checked',true); Title: Re: easyui "form" clear problem Post by: mars610 on October 30, 2011, 08:17:53 AM thinks for your help ,but not is it , jquery form plugin's method 'ajaxClearForm' also. Change the 'ajaxReset' method
|