Only .live() works in dialog loaded via Ajax
I am mindful that live() is depracated and is being dropped altogether in JQuery 1.9
However, my projects load a lot of forms via Ajax into dialogs, using Jquery 1.8.0 and Jquery UI 1.8.23 displaying associated data and dynamically changing the content, including selection options dependent on other selections. I do that with .live("click",function(){ etc. My calls are to php scripts with sometimes complex MySQL queries so embedding them in the page isn't possible.
I have tried to replace the 'live' with 'on',- eg .on("click",function(){ etc but that simply does not work. It is as though 'on' is not able to track the imports to the DOM via Ajax/Dialog and I am concerned that I will simply have to stick with the 1.8 series.
Anyone cast any light on this? I use Firefox 18.0 with Firebug as the main browser for development