Change button text jquery mobile

后端 未结 10 924
傲寒
傲寒 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条回答
  •  半阙折子戏
    2020-11-29 05:19

    This works for me:

    $('#idOfOriginalButton').prev('.ui-btn-inner').children('.ui-btn-text').html('new text');
    

    solution from: http://forum.jquery.com/topic/changing-text-works-except-for-buttons

提交回复
热议问题