Hi Folks,

I'm struggling with some jQuery that is probably simple for most of
you.

I have a button on a screen that is having a click function added to
it.

When a user double clicks said button, the click function gets entered
twice.

I'd like to prevent the second entry into the function, as having it
enter twice screws up the logic of the button.

(It's amazing to me how many people double-click web links.)

Here's some of the code...

$(this).click(function() {
  $.get(uri,
    function(data){
      //do stuff, we want to do this stuff once

Clues for me?

regards

Reply via email to