There are a number of errors shown in your browser's console - attached. Learning to work with the console is an essential skill when working with JS.
Most importantly, you are not loading the jQuery library before you attempt to use it, so $ is undefined.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity
." Me Myself & Irene
Validate your HTML