Title: How to disable validatebox Post by: entoknakal on May 21, 2014, 09:58:23 PM Hello,
I need to set validatebox to disable...Is this possible? I am using easyui v1.3.6 Title: Re: How to disable validatebox Post by: jarry on May 21, 2014, 10:30:10 PM Please call 'disableValidation' method to disable validation.
Title: Re: How to disable validatebox Post by: entoknakal on May 21, 2014, 11:51:36 PM Hi Jarry,
Thank you..i mean is it posible if validatebox can disabled like numberbox using data options? example: Code: <input type id="unitId" name="unit"></input> Code: <input type id="unitId" name="unit" data-options="disabled:true"></input> Title: Re: How to disable validatebox Post by: jarry on May 22, 2014, 01:30:07 AM Yes, you can disable a input box.
Code: <input type id="unitId" name="unit" disabled="disabled"></input> Code: $('#unitId').validate({ Title: Re: How to disable validatebox Post by: sky_proj on June 22, 2015, 09:43:37 PM <input type id="unitId" name="unit"></input>
<script type="text/javascript"> $('#unitId').validatebox({ disabled: true }); </script> it's not work for me, im using easyui 1.4.2 Title: Re: How to disable validatebox Post by: jarry on June 22, 2015, 11:51:40 PM The 'disabled' property does not supported in the validatebox plugin, please use the 'novalidate' property instead.
Code: $('#unitId').validatebox({ Title: Re: How to disable validatebox Post by: sky_proj on June 25, 2015, 02:31:48 AM The 'disabled' property does not supported in the validatebox plugin, please use the 'novalidate' property instead. Code: $('#unitId').validatebox({ i have try and still can not disabled.. Title: Re: How to disable validatebox Post by: jarry on June 25, 2015, 04:24:27 AM The novalidate property only disable the validating action, it can not disable the element.
Title: Re: How to disable validatebox Post by: sky_proj on June 25, 2015, 07:10:52 AM The novalidate property only disable the validating action, it can not disable the element. Oh ok.. I'm find solution to disabled that element: <script> $(function(){ $('#test).prop('disabled',true); }); </script> <html> <input Id='test' class='easyui-validatebox'> </html> |