Rows per page -- focus
Rows per page -- focus
![johnmhoran](https://secure.gravatar.com/avatar/00d78fb86f52ceb0970eddaed4d387f0/?default=https%3A%2F%2Fvanillicon.com%2F00d78fb86f52ceb0970eddaed4d387f0_200.png&rating=g&size=120)
I'm using aLengthMenu to create a dropdown for selecting the number of rows per page. When the user makes a selection, the display changes properly, but focus remains on the dropdown -- so if a user selects from the dropdown and then hits the page down key (hoping to scroll down the page), the dropdown itself scrolls rather than the page. See http://esininja.com/Library.aspx.
Is there a way to create a row-selection dropdown that will move the focus away from the dropdown once a number of rows is selected?
Is there a way to create a row-selection dropdown that will move the focus away from the dropdown once a number of rows is selected?
This discussion has been closed.
Replies
You could add a 'change' event listener to the `select` node and call `blur()` when it changes. Might upset screenreader users, but I don't know for sure!
Allan