EasyUI Forum
March 28, 2024, 02:20:07 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: how can i focus the textbox  (Read 19584 times)
wade.zhu
Newbie
*
Posts: 27


View Profile
« on: August 03, 2014, 08:20:26 PM »

before v1.4, i use validatebox, and i could val('some text') or focus() the validatebox
now if i change to textbox, how could i focus the textbox?
Logged
hjzhbb7758
Jr. Member
**
Posts: 84


View Profile Email
« Reply #1 on: August 03, 2014, 10:18:01 PM »


$('#textbox').textbox('clear').textbox('textbox').focus();
Logged
wade.zhu
Newbie
*
Posts: 27


View Profile
« Reply #2 on: August 03, 2014, 11:50:05 PM »

yeah, it works.
and here is another issue
before v1.4, i could align the validatebox text using style="text-align:right"
now i have to code .textbox('textbox').css('text-align', 'right') after component parsed
i read the document, only 'iconAlign', 'buttonAlign' properties found, no 'textAlign' or something else property found.
Logged
korenanzo
Full Member
***
Posts: 145


View Profile
« Reply #3 on: October 23, 2014, 08:58:49 AM »


$('#textbox').textbox('clear').textbox('textbox').focus();

I use a more generic way, you can use it even with other kind of objects, as combobox.

$('#textbox').next().find('input').focus()
Logged

-- Licensed User --

www.kitelabs.it
tumbas
Newbie
*
Posts: 5


View Profile Email
« Reply #4 on: November 05, 2017, 06:17:47 AM »

i use this script and works

Quote
$('#name').textbox('textbox').focus();
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!