Skip to content

Instantly share code, notes, and snippets.

@mori-dev
Forked from gawaooooo/backgroundImage.js
Created April 1, 2014 11:54
Show Gist options
  • Save mori-dev/9912483 to your computer and use it in GitHub Desktop.
Save mori-dev/9912483 to your computer and use it in GitHub Desktop.
// 設定されたbackground-imageのurlを無効にする場合
$('#hoge').css('background-image', 'none');
// background-imageのurlを変更する場合
$('#hoge').css('background-image', 'url(test.png)');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment