Hi i need set focus to the element that is immediate next(and in other case immediate prev ) to the current element
eg
<li>item1</li> <- prev element (get this element)
<li>item1</li><- current element
<li>item1</li> <- next element (get this element)
<li>item1</li>
this is what i used
var curr = (event.target).next();
$(curr).trigger('focus');
when i check the value of curr in firebug it shows undefined ??