954,600 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Remove Selected Value from the Text Area

I'm working on asp.net c# web app. in my form I have Text Area and button. when I click the button I want to remove selected text from the text area (not all text only selected text.) how can I do this? can I use javascript for that if so how? :cry:

aish
Light Poster
26 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

IE has a "selection" object: http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_selection.asp

However, ASP.NET is such a completely different animal from standard web development, you should ask in the ASP.NET Forum.

This is one of those things that different browsers handle differently, so a seach on "quirksmode.org" is beneficial: http://www.quirksmode.org/js/selected.html

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You