Start New Discussion within our Web Development Community

hi, i want ajax to be called only once, but insted it calls everytime when i click on the button.
my script:



  url: "image_edit.php",
  cache: false,

  .done(function( html ) {
    $( "#results_image_edit" ).append( html );

That is what jquery's .one() is for.

$("#modal-launcher-user").one('click', function() {
This question has already been answered. Start a new discussion instead.