Connecting Tech Pros Worldwide Help | Site Map

Focus to a element in a overflown div tag

Newbie
 
Join Date: Aug 2008
Posts: 17
#1: Nov 17 '08
A div tag has a table inside it and the content has overflown across Y axis. I want to focus or scroll to a particular row <tr> dynamically. How can I achieve this?
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Nov 17 '08

re: Focus to a element in a overflown div tag


Can you post some of your code please.
rnd me's Avatar
Expert
 
Join Date: Jun 2007
Location: Urbana IL
Posts: 411
#3: Nov 18 '08

re: Focus to a element in a overflown div tag


see https://developer.mozilla.org/en/DOM/element.scrollIntoView
Newbie
 
Join Date: Aug 2008
Posts: 17
#4: Nov 19 '08

re: Focus to a element in a overflown div tag


That is working well. Thanks man
Reply