Set image in a button not working in Chrome and Opera?

appaumma

New Member
I have this script where i disable the button after click and blend in a \[code\]gif\[/code\] till the site is reloaded(talking about a submit button).\[code\]$("button[js-hide=1]").click(function() { $(this).prop("disabled", true); $(this).html('<img src="http://stackoverflow.com/questions/15676224/<?php echo CDN('/icons/loading/loading5.gif'); ?>" />');});\[/code\]It iss working fine in \[code\]firefox\[/code\] and \[code\]IE\[/code\], the problem is with \[code\]chrome\[/code\] and \[code\]opera\[/code\] there the button just hides, or in \[code\]opera\[/code\] it wont even hide. Could it be that i can apply an image in a buttin in chrome with \[code\].html(<img...>)\[/code\]? If so has any one a sulotion?Notice:I have a lot buttons like rly a lot so that is no option that i go and place a span or a div tag beside every button. Hopefully this can be made in \[code\]JQ\[/code\], so this is my question actually.Edit:can i add with \[code\]JQ\[/code\] a span tag next to every button that i click?
 
Back
Top