Tohaki
08-25-2008, 08:35 AM
I have a dataTable in JSF with a JavaScript function that highlights a row. I have another JavaScript function that recognizes when the up and down arrow keys are pressed. Both these functions are in what I believe is called a prototype object.
What I want to achieve is to highlight the row above or below depending on which arrow key is pressed. Can I store the element from the first JavaScript and somehow use it to traverse the document in the second?
Any help would be greatly appreciated!
What I want to achieve is to highlight the row above or below depending on which arrow key is pressed. Can I store the element from the first JavaScript and somehow use it to traverse the document in the second?
Any help would be greatly appreciated!