Convert Jquery to vanilla js in Pub Posted December 1, 2019 Hey i have a problem with the code: $('a').click(function(link) { link.preventDefault(); location = this.href; $('body').fadeOut('slow', open); }); function more() { window.location = location; } It's writen in Jquery but i will convert it to vanilla js. Can somone help me with it?
Convert Jquery to vanilla js
in Pub
Posted
Hey i have a problem with the code:
It's writen in Jquery but i will convert it to vanilla js. Can somone help me with it?