用于下一个未聚焦输入的jQuery选择器(jQuery selector for next unfocused input)
我在段落中有一个输入元素$myInput = $('#someInput') 。 我想在该段中找到未聚焦的下一个输入元素。
我试过$myInput.next('input(:not(:focus))')但这似乎不起作用。
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');接着
$myInput.nextAll('input').not(':focus').eq(0); $myInput = $('input');and then
$myInput.nextAll('input').not(':focus').eq(0);更多推荐
发布评论