【发布时间】:2014-11-05 22:32:50
【问题描述】:
我尝试修改 UserVoice 的形式。
这里是小部件的 html 代码:
<article class="widget large-widget">
<div class="viewport vertical-layout" data-viewport="" style="height: 325px;">
<section class="pane instant-answers-omnibox-input-pane" style="display: block;">
....
<form>
<div class="pane-body" style="top: 48px; bottom: 119px; height: 158px;">
<div data-stretch-vertical="" style="height: 158px;">
<textarea
placeholder="Give feedback or ask for help…"
data-autofocus=""
data-search-input=""
class="textbox textarea full-width full-height">
</textarea>
</div>
</div>
....
</form>
</section>
</div>
</article>
我想修改textarea的占位符,但是无法访问。
示例:
jQuery('textarea').attr('class') -> <nothing> (otherwise: 'textbox')
谢谢
【问题讨论】:
标签: javascript jquery uservoice