Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8412803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:46:09+00:00 2026-06-10T00:46:09+00:00

I am having an odd issue. I have a textbox with an ajaxToolkit HtmlEditorExtender

  • 0

I am having an odd issue. I have a textbox with an ajaxToolkit HtmlEditorExtender attached to it. I need to get the text that is put in this textbox using javascript.

I have a simple test set up:

var element = document.getElementById('<%=txtUserInput.ClientID%>');
alert(element);

This seems to report that the object is an HTML textarea element so I use .value to try and get what is inside then I tried .text because .value did not work.

alert(element.Value);
alert(element.Text);

These both give me a popup with “undefined” in it. How do I get the value out of this textbox?

I have seen this post:

JavaScript getElementById for ASP.NET Control returns null?

and this one too:

JavaScript get TextArea input via .value or .innerHTML?

Here is my HTML Element

<asp:TextBox ID="txtUserInput" Height="100%" Rows="10" Width="100%" TextMode="MultiLine"
runat="server" />
        <ajaxToolkit:HtmlEditorExtender ID="HtmlEditorExtender_txtUserInput"
            TargetControlID="txtUserInput" DisplaySourceTab="false" runat="server">
            <Toolbar>
                <ajaxToolkit:Bold />
                <ajaxToolkit:ForeColorSelector />
                <ajaxToolkit:Italic />
                <ajaxToolkit:JustifyLeft />
                <ajaxToolkit:JustifyCenter />
                <ajaxToolkit:JustifyRight />
            </Toolbar>
        </ajaxToolkit:HtmlEditorExtender>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T00:46:11+00:00Added an answer on June 10, 2026 at 12:46 am

    “.Value” and “.Text” are ASP.NET control properties, not Javascript element properties. You need to use “.value”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having an odd issue in FF10 using jQuery 1.7.1. I have a gallery
I have having a very odd issue when utilizing this UIAlertView. When viewing a
I'm having a particularly odd issue when developing Chrome extensions using jQuery. I have
I'm having this issue where i use nth-child(odd) to color a table. In IE9
I seem to be having an odd issue w/ the ApplicationDeployment.CheckForUpdateAsync Method. I have
I'm having an odd issue with CALayer drawing for the iPhone. I have a
I'm having this very odd issue while trying to serialize a class for logging
This is probably a truly basic thing that I'm simply having an odd time
I'm using Java for a data mining project and am having an odd issue
I'm having a really odd issue with Internet Explorer, on my website I'm using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.