-1
我希望向id conCol添加'1'使其成为conCol1。请有人可以告诉我如何解决这个问题,因为我下面的陈述不起作用。另外,是否有可能得到“第一列”的值,即条件#0使其成为条件#1?使用jquery获取元素的第n个子值
newElem.children('select :nth-child(2)').attr('id', 'conCol' + newNum).attr('name', 'name' + newNum);
<tr id="condition1" class="clonedInput">
<td class="first-column">Condition #0</td>
<td><span style="float:left; padding-right: 10px;">
<select id="conCol" name="conCol" class="standard_select" style="width:147px; background:#fff;">
你试图让'select'标签或者是你想获得选项? – Cfreak