I would like the checkbox #video-checkbox, when hovered over, to animate the image #video as seen below. What am I doing wrong?
$(document).ready(function () {
$("#video-checkbox").hover(function () {
$("#video").stop().animate({
opacity: 0.75,
marginTop: -10
}, 400);
}, function () {
$("#video").stop().animate({
opacity: 1.0,
marginTop: 0
}, 400);
});
});
From the link you provide it seems jQuery is not included in your page, $ is not defined. Download jQuery and link to it in your page’s head tag