EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 21, 2024, 05:56:19 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
how can i focus the textbox
Pages: [
1
]
« previous
next »
Print
Author
Topic: how can i focus the textbox (Read 19751 times)
wade.zhu
Newbie
Posts: 27
how can i focus the textbox
«
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
Re: how can i focus the textbox
«
Reply #1 on:
August 03, 2014, 10:18:01 PM »
$('#textbox').textbox('clear').textbox('textbox').focus();
Logged
wade.zhu
Newbie
Posts: 27
Re: how can i focus the textbox
«
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
Guest
Re: how can i focus the textbox
«
Reply #3 on:
October 23, 2014, 08:58:49 AM »
Quote from: hjzhbb7758 on August 03, 2014, 10:18:01 PM
$('#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
tumbas
Newbie
Posts: 5
Re: how can i focus the textbox
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...