jquery keypress iterate through each loop?
- by user239831
hey guys,
probably a simpel question, however couldn't find anything online.
i have a list with search results and i want to be able to navigate through the list with my up and down keys.
if (e.keyCode == 40) { //down
//alert('down');
$('#searchresults ul li').each(function() {
});
}
if (e.keyCode == 38) {…