Reputation: 116273
I have an input element $myInput = $('#someInput')
within a paragraph. I would like to find the next input element in that paragraph which is unfocused.
I have tried $myInput.next('input(:not(:focus))')
but this doesn't seem to work.
Upvotes: 1
Views: 672
Reputation: 62392
$myInput = $('input');
and then
$myInput.nextAll('input').not(':focus').eq(0);
Upvotes: 3