Presently, I am working with a button
<input id="fireAction" type="button" class="submit" onclick="disableSubmit('preFlight');"><br>
Afterwards, I modify the background image of the button under different circumstances
For example:
#('#fireAction').css('background-image','url(fail.jpg)');
#('#fireAction').css('background-image','url(success.jpg)');
However, I am facing an issue because the size of fail.jpg / success.jpg is not the same. How can I define some CSS (I have tried width:auto but it is not working) to adjust the button size according to the size of the background image? Thank you