jQuery - Clickable everything script


/ Published in: jQuery



Copy this code and paste it in your HTML
  1. $('.click')
  2. .css("cursor","pointer")
  3. .click(function() {
  4. window.location = $(this).find('a:first').attr('href');
  5. return false;
  6. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.