I'm currently working on a jQuery script that looks like this:
<script type="text/javascript">
$(document).ready(function () {
var $containerHeight = $('.container').height();
if ($containerHeight < 760) {
$('.footer').css({
position: 'static',
bottom: 'auto',
left: 'auto'
});
}
});
</script>
However, when I run the script, I encounter this unhelpful error message:
Uncaught ReferenceError: $ is not defined (anonymous function)
Can anyone point out where I might be making a mistake?