STYLE SWITCHER

Registering jQuery click, first and second click

$('.myClass').click(function() {
  var clicks = $(this).data('clicks');
  if (clicks) {
     // odd clicks
  } else {
     // even clicks
  }
  $(this).data("clicks", !clicks);
});

Recent Article

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  1. Some tips i have seen in terms of laptop or computer memory is there are specifications such as SDRAM, DDR or anything else, that must match up the features of the mother board. If the computer’s motherboard is very current and there are no operating system issues, modernizing the storage space literally normally takes under one hour. It’s one of many easiest laptop or computer upgrade types of procedures one can visualize. Thanks for giving your ideas.

  • Keep your skills sharp, get informed.

    Subscribe to our mailing list and get interesting stuff and updates to your email inbox