推 akhu:謝謝你~但是你會錯意了,我比較想看的是"TextBox" 06/01 22:23
→ gname:多行的textbox不算是 textarea嗎? 06/01 23:25
→ tomin:如果你是問.NET 我不知道 06/02 01:55
→ rockzero:他的意思或許是按一下多一個input ~~ 06/03 19:38
→ adahsu:@rockzero: 我也是這樣... 猜測... XD 06/05 12:15
如果是問這個
http://jsfiddle.net/9R43g/2/
<textarea rows="2">Web-design rocks!</textarea>
<p id="plus">按我加加加++++++++++++++++</p>
<br />
<p id="minus">按我減減減----------------------------</p>
<div id="update"> </div>
----------------------------------------------------------------------------
var boxID = 1;
$("#plus").click(function(){
var html = "<textarea name=box" + boxID +">New" + boxID +" </textarea>";
boxID++;
$("#update").append(html);
});
$("#minus").click(function(){
$("#update>textarea:last").remove();
boxID--;
});
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.122.30.198