SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Sep 2003
    Location
    Germany
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Inputmenu for textareas

    I would like to have a textarea und a button.

    When I mark some text inside the textarea and then click the button,
    the text inside the textarea should be written in bold letters.

    It should be like the textarea you post your answer in.

    Can you help me? I just can do that with php, but not with javascript.
    Thank you.

  2. #2
    SitePoint Enthusiast briercan's Avatar
    Join Date
    Nov 2006
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if you want all of the text in the textarea to be bold, you could use javascript to change the css style of the text area on the click.
    thisplaceiknow.com - Search for and submit real-life places.
    (Those are the ones that don't start with http://)

  3. #3
    SitePoint Member
    Join Date
    Sep 2003
    Location
    Germany
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No that is not what I want.
    I just want the part of the text marked with the cousor.
    Otherwise it would be no problem.

  4. #4
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need a textarea replacement script like TinyMCE.
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.

  5. #5
    SitePoint Member
    Join Date
    Sep 2003
    Location
    Germany
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you.
    It is too late today. I'll check it tomorrow.

  6. #6
    SitePoint Member
    Join Date
    Sep 2003
    Location
    Germany
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh, it is great!
    Just what I need.


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
  •