That is perfect, thank you so much. Exactly what I wanted and worked easily.
Really is a credit when people are able to be so helpful.
Thank you.
Main Topics
Browse All TopicsHi,
I was wondering if it is possible to have an area of selected text be made bold (or italic/underline - i only need 1 but all 3 would be great) and then stored in a SQL database using a escape() string over AJAX.
Currently I have a from which calls a javascript function which then AJAX's an escape() string (to keep whitespaces).
I would like to be able to display the bold in 3 ways:
1. In the text area itself as it is being made (happy for this to be in tag form)
2. In the textarea when recalled for editing (again happy for this to be in tag form)
3. As actual bold text when displayed in a standard HTML page as I display my current output, simply as a paragraph.
I am not looking for a WYSIWYG style editor or anything like that, simply the option to add bold. If there is an easy way to size as well that would be great but a bonus.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
No Problem. The credit should also go to the person in this forum http://forums.devshed.com/
Business Accounts
Answer for Membership
by: sunithnairPosted on 2009-04-14 at 03:40:09ID: 24136586
Try this code. This will add the necessary tags to the selected text inside a textarea. You can store them in database and later retrieve it which will automatically show up with tags when editing and formatted when shown in the browser as HTML.
Select allOpen in new window