Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting focus to a table row

 
Kalai Selvan
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
How can we move focus to a particular table row/col?

I tried following thing: document.getElementById("someRow").focus(), but its not working.

Please help me out.


Thanks and Regards,
Kalai Selvan T.
 
Niki Nono
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hope by setting focus you mean changing the color of the row.
just set the color of the particular row to what you want .
i cant figure out how else you can say giving focus to the row.
 
Kalai Selvan
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Niki for your quick reply.

But what i am looking at is not highlighting the rows. I want to move the focus to a particular row, so that subsequent key press events will be handled by the row.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://radio.javaranch.com/pascarello/2005/01/09/1105293729000.html

you would have to give ids to the rows so you know how to locate them.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic