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 );

Recommended Answers

All 3 Replies


Will remove the click handler.

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

$("#modal-launcher-user").one('click', function() {

thnx :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.