I found the answer to my own question.
To overcome this problem, I have to use the .live method to bind
current and future elements on the page.
I made the following change to my function to use the .live method.:

jQuery.fn.checkmarkClickWithAjax = function(){
   this.live("click",function(){
       $(this).html("<img src='/images/icons/wait.gif' />");
       $.ajax({
           url: this.href,
           dataType: "script"
       });
       return false;
   });
   return this;
};


For more information see http://docs.jquery.com/Events/live





Reply via email to