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(){
I encountered an unusual problem. I have a ajax setup. And clicking a
specified image will call this ajax function.
It goes something like:
jQuery.ajaxSetup({
'beforeSend': function(xhr) {xhr.setRequestHeader("Accept","text/
javascript")}
})
jQuery.fn.checkmarkClickWithAjax = function(){
t
2 matches
Mail list logo