说我有
$(":input[type=text]:first")
Run Code Online (Sandbox Code Playgroud)
如何得到
<input type="text" value="" size="28" maxlength="140" tabindex="1" placeholder="search" class="textbox" name="q" autocomplete="off">
Run Code Online (Sandbox Code Playgroud)
假设我在SO上运行它?
更新我不想打电话,.parent()因为我在父元素中有很多其他东西.