<table id="mytable">
<tr>
<td>选择</td>
</tr>
<tr>
<td>
<input id="chk" name="chk" type="check">
</td>
</tr>
</table>
我想令其变成
<table id="mytable">
<tr>
<td>序号</td>
</tr>
<tr>
<td>
<input type="text" value=1>
</td>
</tr>
</table>我现在一点头绪都没有,也许我这个思路没法实现吧?
<tr>
<td>选择</td>
</tr>
<tr>
<td>
<input id="chk" name="chk" type="check">
</td>
</tr>
</table>
我想令其变成
<table id="mytable">
<tr>
<td>序号</td>
</tr>
<tr>
<td>
<input type="text" value=1>
</td>
</tr>
</table>我现在一点头绪都没有,也许我这个思路没法实现吧?
$(function(){
$("#theforever_csdn td").eq(0).html("碧海情天");
$("#theforever_csdn td").eq(1).html('<input type="text" value=1 />');
})
</script>
$(function(){
$("#theforever_csdn td").eq(0).html("碧海情天");
$("#theforever_csdn td").eq(1).html('<input type="text" value=1 />');
})
</script><table id="theforever_csdn">
<tr>
<td>断水寒刀</td>
</tr>
<tr>
<td>
<input id="chk" name="chk" type="check">111</input>
</td>
</tr>
</table>这种小事对JQ是轻而易举
$(function(){
$("#theforever_csdn td").eq(0).html("碧海情天").end().eq(1).html('<input type="text" value=1 />');
})