SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jan 2008
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question how i can unbold the text in textarea using javascript in ASP.net

    hi,
    i want unbold the selected text in textarea using javascript if the selected text is bold.plz send answer to me if anybody know help me.thanks in advance.

  2. #2
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A text in a textarea can not be bold. Unless all the textarea has font-weight:bold.

    I assume that you are talking about rich edit? Check out the execCommand method to manipulate selected text.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •