How to format the selected text to bold in textbox on click of button

Posted by Mahendrabasutkar under JavaScript on 9/9/2011 | Points: 10 | Views : 2266 | Status : [Member] | Replies : 3
Hi All,

How to format the selected text to bold in textbox on click of button

Thanks&Regards,
mahendrabasutkar




Responses

Posted by: Niladri.biswas on: 9/9/2011 [Member] Platinum | Points: 25

Up
0
Down
As far as in know It canot be done inside a textbox because it displays only plain-text

Best Regards,
Niladri Biswas

Mahendrabasutkar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Godly77 on: 10/19/2011 [Member] Starter | Points: 25

Up
0
Down
but you can make all text in bold by this code

document.getElementById("yourtextboxID").style.font-weight="bold";

Godly Mathew

Mahendrabasutkar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: G on: 5/17/2012 [Member] Starter | Points: 25

Up
0
Down
cvxvxv

Mahendrabasutkar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response