Replace live() with on()
<p>From the documentation</p>

<pre><code>$(selector).live(events, data, handler);                // jQuery 1.3+
$(document).delegate(selector, events, data, handler);  // jQuery 1.4.3+
$(document).on(events, selector, data, handler);        // jQuery 1.7+
</code></pre>

<p>I'm using jQuery 1.7.1</p>

<p>This works, for static elements and dynamically loaded elements:</p>

<pre><code>$("input").live("change", function () { alert("hello"); });
</code></pre>

<p>This doesn't work, not even for static elements:</p>

<pre><code>$("document").on("change", "input", function () { alert("hello"); });
</code></pre>

<p>What am I missing?</p>
