robert_gsfame Posted May 10, 2010 Share Posted May 10, 2010 How can i bold text that is typed inside textarea thx Quote Link to comment Share on other sites More sharing options...
robert_gsfame Posted May 10, 2010 Author Share Posted May 10, 2010 what i want is only give a html tag between the selected text so its almost like xxxx Quote Link to comment Share on other sites More sharing options...
tomfmason Posted May 10, 2010 Share Posted May 10, 2010 you can make all of the text in the textarea bold but afaik there is no way to make selected words bold Quote Link to comment Share on other sites More sharing options...
robert_gsfame Posted May 10, 2010 Author Share Posted May 10, 2010 What i want is almost like what we have in this forum when create a topic...you can easily give a bold tag between [b']highlighted text[/b'] this is what iam lookin for Quote Link to comment Share on other sites More sharing options...
Alex Posted May 10, 2010 Share Posted May 10, 2010 It's called BBcode, look it up you can easily find examples on how to implement it. Quote Link to comment Share on other sites More sharing options...
Ang3l0fDeath Posted May 10, 2010 Share Posted May 10, 2010 You can do this through javascript. I've done it before with smiley face for a chat room. You can do BOLD TEXT within a textarea, however you need javascript or something like PHP to automatically change/find/replace with <B> Its simply and easy. Can you give more act info on what you doing with that data and how your outputting it? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.