Hello everyone,
I am currently working on the Random Quote Generator Project and I’ve hit a problem in which I am unable to click on any buttons/a tags that I’ve created. It’s almost as if my Chrome has decided to disable button clicks on CodePen.io because the buttons work when I use Firefox or another browser like Brave.
I noticed this problem began after I messed with jQuery’s click function.
$("button").click(() => {
alert("Clicked");
});
I just wanted to test if my .click function worked. After the alert popped up, I am no longer able to click the button on Chrome. There are also no hover effects that I can see when I interact with the button and a tags.
For reference, this is the pen I’m working on.
I would also like to apologize if this is in the wrong category to ask this kind of question.
Any help would be much appreciated thank you!