Remove Selected Value from the Text Area

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Aug 2005
Posts: 26
Reputation: aish is an unknown quantity at this point 
Solved Threads: 0
aish's Avatar
aish aish is offline Offline
Light Poster

Remove Selected Value from the Text Area

 
0
  #1
Jan 7th, 2006
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:
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Remove Selected Value from the Text Area

 
0
  #2
Jan 7th, 2006
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC