【发布时间】:2015-07-08 06:47:29
【问题描述】:
我有以下代码,我想删除占位符。
<div class="myclass">
<p><a href="http:[Sitename]">[Sitetile]</a>[change this too]someothercontent</p>
</div>
我想使用 jQuery 将上面的标记更改为一些事件:
<div class="otherclass">
<p><a href="http:yahoo.com">changemaincontent</a>changesomeothercontent</p>
</div>
【问题讨论】:
-
占位符是表单元素的属性。
-
您要删除的占位符在哪里?
-
Placeholder 是 input 文本元素的属性,而不是表单。 w3schools.com/tags/att_input_placeholder.asp OP 的代码中确实没有占位符。
标签: javascript jquery html