Answers for "how to trigger click event on a href element"

0

how to trigger click event on a href element

$(document).on("click", ()=>{
let href = $(".class").attr("href");
window.location.href = href;
})
Posted by: Guest on July-10-2021

Code answers related to "how to trigger click event on a href element"

Browse Popular Code Answers by Language