This question already has an answer here:
- Turning live() into on() in jQuery 5 answers
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?