It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Get control on <div> tag onkeydown from text box

Get control on <div> tag onkeydown from text box

Postby nata031 on Sat Mar 27, 2010 8:50 am

Hi,

I want to get control on the scrollable div tag on key down in text box and later if I use keydown I should get control on the next div tag. Basically I'm trying to use div tags instead of select drop down. Can it be done through JS? Please do the needful.

Code: Select all
<input type="text" id="txt"/>
<div style="width:200px; height:100px; overflow:auto;" id="dropdown">
   <div id="cell-0">A</div>
   <div id="cell-1">B</div>
   <div id="cell-2">C</div>
   <div id="cell-3">D</div>
   <div id="cell-4">E</div>
   <div id="cell-5">F</div>
        <div id="cell-6">G</div>
   <div id="cell-7">H</div>
</div>


Thanks.
nata031
 
Posts: 1
Joined: Sat Mar 27, 2010 8:35 am

Who is online

Users browsing this forum: No registered users and 5 guests