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 3998662
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:33:15+00:00 2026-05-20T07:33:15+00:00

I am using the textarea for my web page. It is similar to RichTextEditor

  • 0

I am using the textarea for my web page.

It is similar to RichTextEditor.

Now i want to get the code for that text entered with its style and value of the text using JavaScript… so please can anyone help me.

I am able to extract only value but not style of the text..so how can I get the style also with text value…

  • 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-05-20T07:33:16+00:00Added an answer on May 20, 2026 at 7:33 am

    Style all by itself won’t tell you what you want. You need to ask for a child of ‘style’. Something like:

    var textarea_style = getRefToDiv( ‘id_of_the_textarea’ ).style.the_style_attribute_you_want;

    For example, style.fontWeight, style.lineHeight, and so on. BTW, the styles you set with CSS:

    font-weight: bold;

    in JS are named by deleting the dash and capitalizing the word after it, so in JS it’s fontWeight.

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

Sidebar

Related Questions

Using javascript, how to open a text-file or html-file from a web-page and load
I am using following code to display HTML Form on my web page. This
I am showing a web page using html string in a UIWebview. I want
I am using textarea HTML formatting. My HTML is: <textarea type=text name=description id=description value=description
using Javascript, it is easy to programatically select the text inside a textarea or
We have a web application that runs on IIS using .NET 2.0 developed and
You have some web-site with text area in it, example I'm using - http://writer.bighugelabs.com
I'm developing an blog using ASP.NET , and I want that the user can
I have a code here that consist of input box and a text area,
I have a textarea on my web page. It displays differently in different browsers.

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.