我确定解决方案很简单,但我无法弄明白:(我需要在一个选择器中组合两个jquery选择器:
$(this) + $('input[type=text]:first')
Run Code Online (Sandbox Code Playgroud)
$(this)是例如div#selected所以结果应该是:
$('div#selected input[type=text]:first').focus();
Run Code Online (Sandbox Code Playgroud)
怎么做?