jquery on to replace live?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/9864476/jquery-on-vs-live">jquery: on vs live</a>  </p>
</blockquote>



<p>I have code that works just fine using <code>$('thing').live("mousemove", function(e) {</code> and <code>$('thing').live({mouseenter:function(e) {</code>. I notice jquery said <code>live</code> is depreciated and to use <code>on</code> so i did. However it doesn't seem to work the way i expect it to. I had mousemove events but since objects were loaded dynamically the events werent triggering which is why i use live. Now live works perfectly but when i use <code>on</code> as jquery suggested it seems to act like .mousemove and such. It works on objects that exist when the code is executed and not on dynamically added events (the whole reason i use live).</p>

<p>Is there a way to tell on to act like live and add events on new object? or do i use live?</p>
