944,154 Members | Top Members by Rank

Ad:
Jan 7th, 2006
0

Remove Selected Value from the Text Area

Expand Post »
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:
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
aish is offline Offline
26 posts
since Aug 2005
Jan 7th, 2006
0

Re: Remove Selected Value from the Text Area

IE has a "selection" object: http://msdn.microsoft.com/workshop/a..._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
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: Is it possible to submit form values using JavaScript? How?
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: age advancing script?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC