EasyUI Forum
June 25, 2024, 07:06:44 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: Get text from validatebox [solved]  (Read 14936 times)
Gazzeh
Newbie
*
Posts: 4


View Profile Email
« 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


View Profile Email
« 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


View Profile Email
« 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  
 
Jump to:  

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