cannot manipulate style, I think I got everything ready but it doesn't work, I test with alert() and it fired.
what is wrong here:
$(document).ready(function() {
$(".cell").mouseover(function() {
$('this').css('opacity','0.4');
});
});
cannot manipulate style, I think I got everything ready but it doesn't work, I test with alert() and it fired.
what is wrong here:
$(document).ready(function() {
$(".cell").mouseover(function() {
$('this').css('opacity','0.4');
});
});
Try this by removing the quotes from this:
$(this).css('opacity','0.4');
instead of
$('this').css('opacity','0.4');
Here, you are treating this as keyword. Hence, it does not need quotes around.
Write:
$(this).css('opacity','0.4');
instead of
$('this').css('opacity','0.4');
you are mistakenly treating this as a string by enclosing it in quotes. just remove the quotes
i have updated it as Here
$(document).ready(function() {
$(".cell").mouseover(function() {
$(this).css('opacity','0.4'); // HERE
});
});
this