I was working on an html css jquery project and I have encountered a problem related to a jquery function. I am unable to find the error correction. Please help me out.
$(document).ready(function(){
  $('.bxslider').bxSlider({
    mode: 'horizontal',
    auto: true,
  });
  $('.menu-togglr').on('click',function(){
    $('#main-nav').slideToggle('fast');
    $(this).toggleClass('active');
  });
});
here the errors are
- $ not defined
and the part from $('.menu-togglr)., is not working.
 
     
     
     
     
    