i want to change my button background image using javascript so i wrote a code like this but seems to be it's not working well.
$('#search-button-input').css('background-image', $.format("url('Images/%(color)s.png')", { color: e }));
e is image comes with fire the some other function.
my input tag like this
<input id="search-button-input" type="button" name="q" class="search-button-input" value="search" />