jQuery selector for next unfocused input
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.
$myInput = $('input');
and then
$myInput.nextAll('input').not(':focus').eq(0);
$myInput.nextAll('input').not(':focus').first();
精彩评论