Last active
August 29, 2015 14:19
-
-
Save ituki/1ccbd28e85685d11c025 to your computer and use it in GitHub Desktop.
【Colorbox】一部だけスタイルを変える(クラスを追加する) ref: http://qiita.com/ituki_b/items/ae393e79907c53b214e4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('呼び出す要素').colorbox({ | |
onOpen: function(){ | |
$('#colorbox').addClass('追加したいクラス'); | |
}, | |
onClosed:function(){ //閉じるときに必ず消す。じゃないと次開くcolorboxもクラスがついたままになるので | |
$("#colorbox").removeClass("追加したいクラス"); | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment