相关疑难解决方法(0)

更改按钮文本jquery mobile

我正在使用新的jquery mobile 1.0 alpha 1版本来构建移动应用程序,我需要能够切换按钮的文本.切换文本工作正常,但只要执行文本替换,css格式就会被破坏.

混乱格式的屏幕截图: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");
Run Code Online (Sandbox Code Playgroud)

css jquery jquery-mobile

33
推荐指数
4
解决办法
4万
查看次数

标签 统计

css ×1

jquery ×1

jquery-mobile ×1