Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(".js-imgTobg").each(function(){
- $(this).children("img").css("display", "none");
- var imgSrc = $(this).children("img").attr("src");
- $(this).css("background-image", "url('"+imgSrc+"')");
- });
Add Comment
Please, Sign In to add comment