jQuery选择列 [英] jQuery select column
本文介绍了jQuery选择列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想选择表第一列的所有单元格.谁能告诉我代码.
I would like to select all cells of the first column of a table. Can anyone please tell me the code.
尝试过这个.
$('.sortable tr:nth-child(1)'); // getting entire row.
推荐答案
$('.sortable td:first-child');
这篇关于jQuery选择列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文