[jQuery] [ Add Onclick on loaded image ]
Hi,
I am using jquery to load image with ajax.
$("#thumbnail").image(returData,function(){});
$.fn.image = function(src, f){
return this.each(function(){
var i = new Image();
i.src = src;
i.onload = f;
this.appendChild(i);
});
}
How can i add onClick element inside those image ? I really dont have
any idea how can i pass
parameter from $("#thumbnail").image(returData,function(){}); to the
function loader.
Just starting with jquery here, help will really appreciated
Thanks,