This is a migrated thread and some comments may be shown as answers.

How to get text from a RadTextBox in Javascript

1 Answer 513 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 03 Feb 2012, 06:22 PM
I have a RadTextBox on the page. I read the client side API page for textbox. It said to use something like this:

var shipControl = $find("txtShippingFirstName");
var text = shipControl.get_textBoxValue; ( have also tried just get_Value and it didn't work either.)
alert(text);

However, the alert is just this : "function() {return this._textBoxElement.value;}

So how can I get the text value of a RadTextBox correctly with Javascript?

1 Answer, 1 is accepted

Sort by
0
Matt
Top achievements
Rank 1
answered on 03 Feb 2012, 09:09 PM
Nevermind, I am an idiot. Forgot the () on the function call.
Tags
General Discussions
Asked by
Matt
Top achievements
Rank 1
Answers by
Matt
Top achievements
Rank 1
Share this question
or