我有这个小提琴http://jsfiddle.net/9sQLb/复制一行并更改名称属性..我在行内的td中有2个选择值,这个脚本给它们两个相同的值。有人请告诉我如何给脚本赋予不同的值。基本上应该像Hello_Tech-1和Hello-Exp-1一样创建第一行然后Hello_Tech-2 Hello-Exp-2 为第二行创建。
<table id="Main">
<tr>
<TD>
<SELECT name="ctl00$m$g_c10b6cde_8531_45b1_aee8_b49b773919bf$ctl16">
<OPTION value="1">WCF</OPTION>
<OPTION value="2">ASP.Net</OPTION>
<OPTION value="3">HTML</OPTION>
<OPTION value="4">JS</OPTION>
<OPTION selected value="5">C#</OPTION>
</SELECT>
</TD>
<TD>
<SELECT name="ctl00$m$g_c10b6cde_8531_45b1_aee8_b49b773919bf$ctl17">
<OPTION selected value="Begineer">Begineer</OPTION>
<OPTION value="Intermediate">Intermediate</OPTION>
<OPTION value="Expert">Expert</OPTION>
<OPTION value="Geek">Geek</OPTION>
</SELECT>
</TD>
</TR>
<TR>
<TD>
<SELECT id="ctl00_m_g_c10b6cde_8531_45b1_aee8_b49b773919bf_TechCellDS" name="ctl00$m$g_c10b6cde_8531_45b1_aee8_b49b773919bf$TechCellDS">
<OPTION value="1">WCF</OPTION>
<OPTION value="2">ASP.Net</OPTION>
<OPTION selected value="3">Select</OPTION>
<OPTION value="4">JS</OPTION>
<OPTION value="5">client</OPTION>
</SELECT>
</TD>
<TD>
<SELECT name="ctl00$m$g_c10b6cde_8531_45b1_aee8_b49b773919bf$ctl17" id="ctl00_m_g_c10b6cde_8531_45b1_aee8_b49b773919bf_TechCellDS">
<OPTION selected value="Select">Select</OPTION>
<OPTION value="Intermediate">Intermediate</OPTION>
<OPTION value="Expert">Expert</OPTION>
<OPTION value="Geek">Geek</OPTION>
</SELECT>
</TD>
</tr>
</table>
由于