EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
June 25, 2024, 07:06:44 PM
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
>
Get text from validatebox [solved]
Pages: [
1
]
« previous
next »
Print
Author
Topic: Get text from validatebox [solved] (Read 14936 times)
Gazzeh
Newbie
Posts: 4
Get text from validatebox [solved]
«
on:
July 02, 2013, 05:57:30 AM »
Hi
Please bear with me on this as I'm new to jQuery and only know basic JavaScript.
What I'm trying to do is get the text from a validate box and build it into a link.
I know how to concatenate a link i just cant get the value out of the validate box
eg.
onClick="javascript:window.location='ChangeOrderRef.asp?ref=' + $('#valRef').validatebox('textbox').text;"
Thanks in advance
«
Last Edit: July 02, 2013, 08:54:37 AM by Gazzeh
»
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Get text from validatebox
«
Reply #1 on:
July 02, 2013, 07:29:27 AM »
Call jQuery's val to get input text.
Code:
<input is="vv" class="easyui-validatebox" ...>
<script>
var s = $('#vv').val();
alert(s);
</script>
Logged
Gazzeh
Newbie
Posts: 4
Re: Get text from validatebox
«
Reply #2 on:
July 02, 2013, 07:42:54 AM »
Many thanks.
I tried .val but didn't put the () at the end.
Much appreciated
Regards
Gazz
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...