By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,594 Members | 3,459 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,594 IT Pros & Developers. It's quick & easy.

How to unbold the text in textarea using javascript in ASP.net

P: 1
hi ,
i m building a texteditor using javascript whose functions like MS Front Page.so ,how i can give the effect bold,underline,italic using javascript on button click& if i press again button(ex.bold)then selected text must be as remain as it prevoius.plz help me if anybody know its answers.
Jan 28 '08 #1
Share this Question
Share on Google+
2 Replies


acoder
Expert Mod 15k+
P: 16,027
Welcome to TSDN!

You posted this in the Articles/Howto section. I've moved it across to the forum for you.

Have a look at execCommand for your problem.
Jan 28 '08 #2

acoder
Expert Mod 15k+
P: 16,027
Please don't use the report button to reply.

Just check the source code for the test page. Let me know if you hit any problems.
Jan 28 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.