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:
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