Consider this one of my first real lessons of writing code. Idiots should stay away from jQuery.
I’m sure by this time in internet history this is well documented phenomenon.
I got a job, wrote a bunch of form validation in jQuery like an idiot. No functions, just purely procedural. Now I have to clean it up. It’s gross, disgusting, and disturbing.
I knew I was an idiot. (Still am, in many aspects.) But jQuery makes it’s insanely easy for idiots like me to write horrible code.
Also, learn to write code and some programming patterns.