如何使用jQuery按名称选择元素?
td
$(".bold").hide(); // selecting by class works$("tcol1").hide(); // select by element name does not work
name
<tr> <td>data1</td> <td name="tcol1" class="bold"> data2</td></tr><tr> <td>data1</td> <td name="tcol1" class="bold"> data2</td></tr> <tr> <td>data1</td> <td name="tcol1" class="bold"> data2</td></tr>
慕勒3428872
ITMISS