jQuery - add link to element

0 votes
108 views
added Apr 12, 2019 in jQuery by LC Marshal Captain (25,770 points)
$('#my-link').click(function() {
    window.location = 'https://lazacode.org';
    window.open(url); //for target blank
    
});

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...