kvarnerexpress 0 Report post Posted February 5, 2006 I have various divs flowing around in my page whereonkeydown event handlers are assigned.Is there any way I can set focus to a div or at leastcontrol who has focus when one looses it (blur ?). Inmy special case i present a list of database resultsafter the user entered some search data. To avoidusing the mouse I want the user to be able to selectthe record by siply hitting the Keybord. How can I movefocus form the textox to the table or div ?? Share this post Link to post Share on other sites
Lozbo 0 Report post Posted February 8, 2006 I dont think I understood everything, could you post a link to the website? From my point of view you have the answer yourself, Im not an advanced js programmer but i think that if you set those 'onkeydown' events for different keys, you can tell js to set the focus to the div you want, I think it would be something like this:setfocus(document.myform.yerDiv) Share this post Link to post Share on other sites
iGuest 3 Report post Posted June 3, 2008 Setting focus on div. How To Focus Div So simple in jQuery $("#myDiv").Focus(); -reply by Aamir Afridi Share this post Link to post Share on other sites