如何在點擊時將我的textarea內容更改爲空?使用jquery更改點擊textarea內容
下面是代碼:
<textarea name="adventage" style="width:400px; border-radius: 3px; border-left: 4px solid #6C3" id="adventage" cols="45" rows="5">Share with everyone what are the advantages of this vehicle. </textarea>
的想法是在點擊這個區域,這將是空的打字新文本。
'placeHolder'屬性是最好和簡單的方法來做到這一點。 – SachinGutte 2013-03-18 14:41:35