JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://code.jquery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.css">
<input type="button" id="hide_btn" value="Hide Submit Button" data-inline="true"/>

<button id="submit_btn" data-theme="e" data-inline="true">button</button>

JavaScript

$('#submit_btn').button();

$('#hide_btn').toggle(function(){
    $(this).prev('span').find('span.ui-btn-text').text("Show Submit Button"); //Change the text of the button
    $('#submit_btn').closest('.ui-btn').hide();
},
function(){
    $(this).prev('span').find('span.ui-btn-text').text("Hide Submit Button"); //Change the text of the button
    $('#submit_btn').closest('.ui-btn').show();
});