Changing the value of a jQuery mobile button using jQuery

前端 未结 7 1418
爱一瞬间的悲伤
爱一瞬间的悲伤 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 04:57

    this is very easy, there is a method for this, button('refresh')

    $('#mybutton').val('new Value').button('refresh');
    

    good luck!

提交回复
热议问题