EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: arma on November 08, 2015, 03:40:10 AM



Title: Textbox Set Focus
Post by: arma on November 08, 2015, 03:40:10 AM
Hi,

I could not find a method to set focus to a textbox in the documentation, is there a way $('#tt').textbox('focus') ?

Thanks.



Title: Re: Textbox Set Focus
Post by: stworthy on November 08, 2015, 03:45:39 AM
Please try this:
Code:
$('#tt').textbox('textbox').focus();


Title: Re: Textbox Set Focus
Post by: arma on November 08, 2015, 03:50:32 AM
Ah the method textbox is confusing so i missed to read this part "Return the textbox object. The user can bind any events to this editing box."

I guess the method name should be getTextbox()  ;D

Thanks.