I have written the majority of my site in vanilla javascript and for the sake of consistency could someone please advise how I would translate the following... Thank you!
$("a").click(function(){ $("p").fadeOut(3000); });
I have written the majority of my site in vanilla javascript and for the sake of consistency could someone please advise how I would translate the following... Thank you!
$("a").click(function(){ $("p").fadeOut(3000); });
https://stackoverflow.com/a/17656038/3599496
View that link, it has the answer you're looking for. For the click event, view: