Changing the value of a jQuery mobile button using jQuery

前端 未结 7 1410
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-05 04:49

Wondering if you can help me out. I seem to have a problem changing the text of my jQuery Mobile buttons with jQuery.

$(\"#myButton .ui-btn-text\").text(\"New te         


        
7条回答
  •  不思量自难忘°
    2021-02-05 05:13

    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

提交回复
热议问题