I used live()
for generated pages and frames. But in jQuery 1.9
this function is deprecated and does not work.
I use on()
instead of live()
but this method works for one time, and does not work in frames.
My code looks like this:
$("#element").live('click',function(){
$("#my").html(result);
});
What is the solution?
.live()
also has a section specifically about converting from.live()
to.on()
. – Nimwegen