Question: Code example 8 - 1 $ ( #faqs h 2 ) . click ( evt = > { const h 2 = evt.currentTarget;

Code example 8-1
$("#faqs h2").click( evt =>{
const h2= evt.currentTarget;
$(h2).toggleClass("minus");
if ($(h2).attr("class")!== "minus"){
$(h2).next().hide();
}
else {
$(h2).next().show();
}
evt.preventDefault();
});
(Refer to code example 8-1) What does the parameter named evt refer to?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!