Currently I have a button
<input id="fireAction" type="button" class="submit" onclick="disableSubmit('preFlight');"><br>
Then I change the background image of the button in different case
eg.
#('#fireAction').css('background-image','url(fail.jpg)');
#('#fireAction').css('background-image','url(success.jpg)');
However, since the size of fail.jpg / success.jpg is not the same, how to define some css (Tried width:auto but not working) to make the button fit the size according to the size of background image? thanks