Highlighting text in a textbox using Javascript
Posted
by zohair
on Stack Overflow
See other posts from Stack Overflow
or by zohair
Published on 2010-05-19T14:28:48Z
Indexed on
2010/05/19
14:30 UTC
Read the original article
Hit count: 149
Hi,
I have an ASP.NET 2.0 webapp (with C#). I wanted to add a button which, when clicked would highlight selected text. By 'highlight', I mean change the CSS properties of the text so that it can stand out. I think this can be done with some clientside JavaScript.
I know that you can assign a Javascript function to the onclick event of an HTML input button, but since I'm not very proficient at JS the function itself I have no idea how to write...
Can someone please help?
Thanks a bunch!
© Stack Overflow or respective owner