我有這樣的代碼:如何做到這一點使用jQuery風格
<p><label for="mobtel">Enter mobile no.:</label><br />
<input id="mobtel" type="text" name="mobtel"/></p>
我隱藏它使用jQuery本:
$("label[for=mobtel],#mobtel").hide();
現在我現在想要的是顯示一個新的標籤,新輸入,看起來像這樣:
<p><label for="mobtel">Enter verification no.:</label><br />
<input id="verification_no" type="text" name="verification_no"/></p>
我該如何做到這一點在jquery風格?
嘗試追加html! – 2012-01-31 08:50:04