noganno
9/14/2013 - 8:53 AM

http://www.jquery4u.com/forms/jquery-dynamically-add-form-elements/

//change event on password1 field to prompt new input
$('#password1').change(function() {
        //dynamically create new input and insert after password1
        $("#password1").append("<input type='text' name='password2' id='password2' />");
});