this.valueが$( "#style_background")になったので、$( "。selector")の値に変更する必要があります。これどうやってするの。クリック機能でthis.valueを使用する方法その他の要素
$("#style_background").click(function(){
if ($(".selector").is(":checked")) {
document.cookie = "background=" + this.value + ";" + "path=/";
disable($('#style_background'));
notification('success', 'record updated successfuly', 'topRight');
} else {
disable($('#style_background'));
notification('alert', 'restart your browser', 'topRight');
}
});
は、「セレクタ」あなたはおそらく '$(にbind''に意味のparam – ThisGuyHasTwoThumbs