我正在使用新的jquery mobile 1.0 alpha 1版本来构建移动应用程序,我需要能够切换按钮的文本。切换文本正常工作,但只要您执行文本替换,CSS格式化就会中断。更改按钮文本jquery mobile
屏幕截图搞砸格式:http://awesomescreenshot.com/03e2r50d2
<div class="ui-bar">
<a data-role="button" href="#" onclick="Podcast.play(); return false" id="play">Play</a>
<a data-role="button" href="#" onclick="Podcast.download(); return false" id="download">Download</a>
<a data-role="button" href="#" onclick="Podcast.consumed(); return false" id="consumed">Mark Old</a>
</div>
$("#consumed").text("Mark New");
为什么你在使用jQuery的HTML中使用onclick ??? – naugtur 2011-05-30 10:44:38