i would like to have a DIV list on which the user can navigate by pressing up/down cursor keys and getting event when he changes the current DIV, as it happens in Google Instant results. Do you know if there is a jQuery/JS component to achieve it or any suggestions on the components to use.
Thanks !
Edit
I changed it to use mouseover for highlighting the divs and setting the content of the input on click and the arrow keys. I think this is more similar to Google’s which is what you wanted.
End Edit
I just wrote this for you. I hope you’re able to use it: http://jsfiddle.net/Paulpro/evBkC/8/
It should be easy to modify the css to style it the way you want from there. It highlights a div onclick and detects the up and down arrow keys if the input field has focus. It keeps track of the selectedDiv’s index in a variable called
selectedDivso you can use it if you want. It should be fully cross-browser as far back as IE 5.5 at least and all the other major browsers.HTML:
CSS:
Javascript: