Set*_*gie 0 jquery select children jquery-selectors
如何转动它,它使用两个调用二children:
$('#id tr').children('td').children('input')
进入只召唤一次儿童的东西?我正在尝试选择特定表行(tr)中的每个输入文本框#id.我试过了
$('#id tr').children('td input')
和
$('#id tr').children('td > input')
但这些都不起作用.我对这些选择器表达式不熟悉,很抱歉,如果这很明显的话.
虽然我喜欢这些$("#id tr td input")建议,但在某些情况下(例如,如果你有$("#id tr")来自其他来源的对象)你可能会寻找.find(),这会深入多层次(而不是.children()只有一层):
$("#id tr").find("td input")
| 归档时间: | 
 | 
| 查看次数: | 368 次 | 
| 最近记录: |