jquery background-image[solved] | SoloLearn: Learn to code for FREE!

+9

jquery background-image[solved]

https://code.sololearn.com/W3sMtZ26Oe2I/#js will not display images on button. Whats wrong?

6/9/2019 5:02:30 PM

Frogged

8 Answers

New Answer

+3

Your pattern variable was faulty. Perhaps you forgot to update the link to github content :) Try changing it to: var pattern = "https://raw.githubusercontent.com/thetalent/omapuzzle16/master/image_part_0xy.jpg" https://code.sololearn.com/WFY47PK8KdH2/#html

+7

rv7 perfect! You also solved my next problem in CSS by selector input instead of selector button.

+5

thanks to rv7 I could finish my project https://code.sololearn.com/WCBcC89Bd0NJ/?ref=app

+3

I think nothing is wrong,because you can't add background-image on button!

+2

Codinger 🖥️🇲🇰 ohhh shit!

+2

wrong. https://www.jqwidgets.com/jquery-button-with-image/

+2

Hi Oma, I think that something weird is happening behind the scenes, as we can add background to almost any element x_x https://code.sololearn.com/WAFtt47hTbM4/#html

+1

Welcome Oma! ;) Nice project. 👏