JSFiddle - React, Tailwind, and code Playground
HTML
<input type="button" name="contactme" value="test" style="width:252px; margin-top: 3px; margin-bottom: 4px; width: 252px; border: 3px double #999; border-top-color: #ccc; border-left-color: #ccc; padding: 1px 2px; background: #eee url('http://www.restorationsos.com/imgs/btnBG.gif') repeat-x; color: #ea2400; font: bold 16px Verdana" />
JavaScript
$('input[type=button]').click(function() {
//search for the button
var button = document.getElementsByName("contactme");
//change the image
button[0].style.background = "url(http://www.restorationsos.com/imgs/loader.gif) no-repeat, url('http://www.restorationsos.com/imgs/btnBG.gif') repeat-x";
//change the text
button[0].value = "We Are Connecting You...";
button[0].style.textAlign = "right";
button[0].style.color = "#ea2400";
//disable the button
button[0].disabled = true;
});