我有一张12列的桌子。每列将有一个文本框。When I click on an 'Add' button, a new row should be inserted above the first row of the table。我该怎么办?说,如果我使用jquery append(),它将仅在最后添加行,但我想在第一行的顶部添加。
是否可以在div块中添加html代码?这是我的HTML代码
<div id="content-area">
<p>welcome to ...</p>
</div>
Run Code Online (Sandbox Code Playgroud)
我想<div id="content-area">
用ff代码后插入新块 <p class='info'>Information...</p>
所以它会输出像.
<div id="content-area">
<p class='info'>Information...</p>
<p>welcome to ...</p>
</div>
Run Code Online (Sandbox Code Playgroud)
谢谢!