Change button text jquery mobile

后端 未结 10 926
傲寒
傲寒 2020-11-29 04:32

I\'m using the new jquery mobile 1.0 alpha 1 release to build a mobile app and I need to be able to toggle the text of a button. Toggling the text works fine, but as soon a

10条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-29 05:18

    Mark Old
    

    You want to:

    $('#consumed').text('Mark New');
    $('#consumed').button('refresh');
    

    The reason is to enable your changes to be backwards-compatible with future versions of jQuery mobile.

提交回复
热议问题