jQuery intro - code not updating the browser window

Hello, I’ve just started the jquery course. I can’t understand why my code isn’t updating the browser window. I’ve gone through it a couple of times and also watched the video. I don’t see any difference between what I’ve done and what is demonstrated in the video but when I click the dropdown menus, they don’t dropdown etc. Can anyone see what I’m doing wrong?

$(document).ready(() = {
  $('#cart').on('click', () => {
    $('#account').on('click', () => {
  $('#help').on('click', () => {
  $('.dropdown-menu').on('mouseleave', () => {

Does that seem right?

Is this meant to call a show() method?

Ahhh thank you! I was missing => after ready and also () after show. I’m always amazed that I can’t spot these things :flushed:

1 Like

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.