jQuery - disable click for inner elements in the clickable element

0 votes
234 views
added Apr 15, 2019 in jQuery by LC Marshal Captain (25,790 points)
$('.skin-ads').click(function() { 
  var lazacode = 'https://lazacode.org/?trackthis';
  window.open(lazacode);  
  // $('#no-skin-ads-click').click(false);
  $('#no-skin-ads-click').click(function(){
    return false;
  });
});

 

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