このルールを使用してホバーcssスタイルを切り替えるマークアップがあります。パネル内にチェックボックスがある場合、背景画像のスタイルを削除したい。これは可能ですか?失敗しましたが、以下を試してみました。
CSS:
.StaffMode .day ul li.standard a:hover table {
background:url("test.png");
}
JS:
$("li.test table li").hover(
function () {
if($(this).children(':checked')) {
alert('need to remove the background image style'); // shows as expected
$(this).children('a').removeClass('hover'); // this doesnt work?
}
}
);