How to register event on elements that don't yet exist?
<p>I am trying to register a event on elements like this:</p>

<pre><code>$(document).ready(function() {
   $('.classname').change(function(){
       alert ('This line is never triggered');
   });
});
</code></pre>

<p>But the problem is that .classname elements are later loaded into the dom by ajax. So, how do I correctly register an event in this case? Is it possible to do it only once (I mean, not every time the new element appears?)</p>
