Dynamically add input via jQuery, however all jQuery inputs do not receive focus styling?
<p>I am dynamically adding inputs to a form when a user clicks on an anchor tag that has the jQuery click event attached to it.</p>

<pre><code>$(".add-input").click(function () {

  $("div.form-item").append(get_input());

});
</code></pre>

<p>The above function successfully adds new inputs to the form, however I have another jQuery function that adds styling to the currently focused input like so:</p>

<pre><code>$("input, textarea").focus(function () {
  $(this).parent().addClass("cur-focus");
});
</code></pre>

<p>This function works great for inputs that were apart of the original form, however all the dynamically added inputs do not have the class added by the above event handler.</p>

<p>Both of these event handlers are inside of the $(document).ready function. </p>

<p>Is there a way for the dynamically added inputs to also be bound to my focus event handler on inputs?</p>
