0

JQuery issues with on click event with classes?

I'm having issues with using JQuery to do something when a button is clicked. I've tried implement the solutions on stack overflow and they didn't work so i was wondering what have i done wrong and can someone please help me fix it. https://code.sololearn.com/WMYzdDoW697w

10th Mar 2020, 7:11 AM
Ollie Q
Ollie Q - avatar
3 ответов
+ 4
you're missing another })
10th Mar 2020, 7:13 AM
Taste
Taste - avatar
0
Thanks so much, i can’t believe i missed that.
10th Mar 2020, 7:33 AM
Ollie Q
Ollie Q - avatar
0
WhyFry you know what their motto is ? its write less, do more. and thats exactly what jquery achieve, thats what jquery bring to javascript. i mean look at the basic fuction, like DOM travelsal its as simple as $("#element") compared to vanilla document.getElementById("element") or document.querySelector("#element") JQuery is definitely much shorter, and thats exactly their motto. i also not a big fan of jquery, i never use it unless theres a library that needed it. but in the end its just a personal preference, use it or not its back to the developer themself (well maybe also the client, lol)
10th Mar 2020, 4:06 PM
Taste
Taste - avatar