Avatar of shahjagat
shahjagat
Flag for United States of America asked on

Read value of telerik radtextbox injavascript

Hi,

I am trying to read the value of the radtext box. It comes out empty.

Anything wrong with this code?



var Addr1 = $find("<%= txtAddr1.ClientID %>");
addr1Text = Addr1.get_value();
alert("Addr1Text: " +  addr1Text );

 <telerik:RadTextBox ID="txtAddr1" runat="server" OnTextChanged="txtAddr1_TextChanged" AutoPostBack="false">
                </telerik:RadTextBox>

Open in new window

.NET Programming* TelerikJavaScriptjQuery

Avatar of undefined
Last Comment
Chinmay Patel

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Chinmay Patel

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
shahjagat

ASKER
Chinmay,

txtAddr1 is part of an address control(user control which also has addr2, city state)
When the onclientselectedindexchanged event of the radcombobox is fired, i want to capture all the values.
In this scenario, i can read the values of the city and state comboboxes. I am not able to get the value of the text box.

Thanks
Chinmay Patel

Hi Shahjagat,

Please post complete code, if possible, otherwise it is difficult to guess. Check your Browser's console, are you getting any errors? Also did you try putting a debug point and see what you are getting in Addr1?

Regards,
Chinmay.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck