Skip to content

Instantly share code, notes, and snippets.

@gawaooooo
Created July 23, 2012 03:17
Show Gist options
  • Save gawaooooo/3161862 to your computer and use it in GitHub Desktop.
Save gawaooooo/3161862 to your computer and use it in GitHub Desktop.
【jQuery】background image を変更する
// 設定された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