【发布时间】:2017-02-24 12:44:04
【问题描述】:
我正在尝试使用 jquery 更改我正在使用的插件中按钮上的文本。 它的外部 html 是
<button value="[[3,1,1488182400]]" data-group="2017-02-27" class="ab-hour">
<span class="ladda-label">
<i class="ab-hour-icon">
<span></span>
</i>8:00 am
</span>
</button>
它的内部html是
<span class="ladda-label">
<i class="ab-hour-icon">
<span></span>
</i>8:00 am
</span>
有人知道我将如何将 8:00AM 更改为 9-3AM 吗?
【问题讨论】:
-
请提供html和jquery代码
-
嗨,布伦特,我编辑了要显示的初始帖子,感谢您的快速回复
-
$("#ButtonName").text("The new text"); -
这种情况下的按钮名称是什么?我对 jquery 很陌生
标签: javascript jquery html text nextsibling