My sticky menu didn't show on Chrome

I use Javascript to set one beaver menu module as sticky to top after scrolling.
It showed perfect on beaver builder preview, however, the sticky menu didn’t come out on the front end.
There is no page error on devi tool . Can anyone tell me how to fix this?

The problem is solved. I changed $ as jquery . And the sticky menu showed on Chrome.