divを開くこの関数を取得しましたが、チェックボックスはチェックされていますが、クロムでは機能せず、ie8/9、firefox、opera、safariで機能します。これはなぜですか?
$('#checkbox-01').click(function () {
if ($('#checkbox-01').is(':checked')) {
$('.box').fadeIn('fast');
$('.square').hide('fast');
} else {
$('.box').fadeOut('fast');
$('.square').hide('fast');
}
});