EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: yamilbracho on July 29, 2015, 01:32:57 PM



Title: setText in a ValidateBox
Post by: yamilbracho on July 29, 2015, 01:32:57 PM
Hi.
I read some data from php and want to set some validateBoxes in my form.
My html code is
Code:
<input id="ci_telefono" name="ci_telefono" class="easyui-validatebox" data-options="validType:'number'">

And my javascript code is

Code:
$('#ci_telefono').validatebox('setText', 1234);

In the javascript console I got :
Uncaught TypeError: Cannot read property 'options' of undefined

TIA,
Yamil


Title: Re: setText in a ValidateBox
Post by: stworthy on July 29, 2015, 04:35:40 PM
The 'validatebox' has no 'setText' method defined. Please use the 'textbox' instead.


Title: Re: setText in a ValidateBox
Post by: yamilbracho on July 30, 2015, 07:04:11 AM
Yes!!
I read yesterday in the docs!!!

Thanks a lot!!!