Select row in textarea

How to select a row in a textarea using Javascript

Page 1 of 1

3 Replies - 9425 Views - Last Post: 15 January 2009 - 08:28 AM

#1 climax   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 23
  • Joined: 21-August 07

Select row in textarea

Post icon  Posted 14 January 2009 - 03:33 PM

Hi..

I'm building a website where i need to use certain rows from textareas to filter data that comes later.

I currently have 5 textareas with information displayed from a database. I then need to have the possibility to select a row in each of the textareas and then hit the submit button to filter data based on the rows selected...

I guess i need to use Javascript, but i have now searched for a while without luck :\ anyone have any suggestions on what i can use or how to do it?

Thanks for the help!

Regards from:
Morten

Is This A Good Question/Topic? 0
  • +

Replies To: Select row in textarea

#2 grimpirate   User is offline

  • Pirate King
  • member icon

Reputation: 149
  • View blog
  • Posts: 717
  • Joined: 03-August 06

Re: Select row in textarea

Posted 14 January 2009 - 03:51 PM

I suggest you format the data out into a table where each row is one of the rows in your textarea. You could even do it with divs. Then instead of using the textarea you use radio buttons in front of the row to make only selection of one possible. That should simplify your problem.
Was This Post Helpful? 1
  • +
  • -

#3 climax   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 23
  • Joined: 21-August 07

Re: Select row in textarea

Posted 14 January 2009 - 03:55 PM

yes of course that would be possible :) i'll try that, thanks!
Was This Post Helpful? 0
  • +
  • -

#4 Christopher Elison   User is offline

  • D.I.C Head

Reputation: 39
  • View blog
  • Posts: 230
  • Joined: 29-December 08

Re: Select row in textarea

Posted 15 January 2009 - 08:28 AM

Surely it would be easier to use listboxes instead of textareas, enabling you to easily select certain rows?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1