Results 1 to 5 of 5
  1. #1
    slanluc is offline Junior
    Join Date
    Aug 2011
    Posts
    192
    Thanks
    0
    Thanked 1 Time in 1 Post
    Feedback Score
    0

    Default Bolding text in a textarea

    I'm importing messages and their dates from a database using php and placing into a text area box. Is there anyway that I can make just the dates bold. I tried looking this up but really couldn't find any useful pages except that javascript seemed to be the way to go.

    Any help would be great.

  2. #2
    susen is offline Freshman
    Join Date
    Apr 2010
    Posts
    38
    Thanks
    0
    Thanked 1 Time in 1 Post
    Feedback Score
    0

    Default

    You can use iFrame editor with design mode=on.
    For textarea so far I know is not possible.

  3. #3
    talks_44 is offline Junior
    Join Date
    Jan 2012
    Posts
    149
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Feedback Score
    0

    Default

    You can use javascript to add CSS classes to parts of the data you are calling. When you call the data to the text area, if you do it properly, you can separate the info by <span>s or <div>s and use JavaScript forced CSS classes to style certain pieces. Thus using font-weight:bold;

  4. #4
    jassmee is offline Sophomore
    Join Date
    Mar 2012
    Posts
    144
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    instead of textarea you can used fck editor.... this is best option for textarea ...

  5. #5
    johnny04 is offline Sophomore
    Join Date
    Feb 2012
    Posts
    55
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    Quote Originally Posted by slanluc View Post
    I'm importing messages and their dates from a database using php and placing into a text area box. Is there anyway that I can make just the dates bold. I tried looking this up but really couldn't find any useful pages except that javascript seemed to be the way to go.

    Any help would be great.
    making text bold inside a textarea is not possible.. you must use a WYSIWYG editor instead. for example: TinyMCE or CKEditor (formerly FCKEditor)

Similar Threads

  1. Text link [anchor text] vs image link [alternative text]
    By inblues in forum Search Engine Optimization
    Replies: 9
    Last Post: 03-26-2011, 09:36 AM
  2. XHTML Strict version of textarea spellcheck
    By Richaexpert in forum Web Development - Programming & Coding
    Replies: 2
    Last Post: 02-08-2010, 11:50 AM
  3. Removing newline from textarea form string
    By Abina in forum ColdFusion
    Replies: 1
    Last Post: 02-02-2010, 11:33 AM
  4. Validate url of anchor href tag entered within a textarea
    By sunshine in forum JavaScript & AJAX
    Replies: 0
    Last Post: 01-04-2010, 11:07 AM
  5. Text link and seo..
    By wujijiangjun in forum Search Engine Optimization
    Replies: 3
    Last Post: 09-14-2008, 08:56 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Partners: BOSTON WEB DEVELOPER, LLC   |   WEBCOSMO CLASSIFIEDS