Event not firing on input change for appended elements
<p>In my form, there's a button to add additional elements as needed by the user. For each input field, there's a .change() handler. The issue is that the .change does not fire on appended form elements but still triggers on existing form elements. Any help is appreciated.</p>

<pre><code>$('.element').each(function() {
$mainElement = $(this); // memorize $(this)
$sibling = $mainElement.next('input'); // find a sibling to $this.
$sibling.change(function($mainElement) {
    return function() {
        $mainElement.text('My textfield changed');
    }
}($mainElement));
</code></pre>

<p>Jsfiddle demo: <a href="http://jsfiddle.net/WCDBr/22" rel="nofollow">http://jsfiddle.net/WCDBr/22</a></p>