Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

jQuery - add link to element

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

 

Please log in or register to response this reference.

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