http://docs.jquery.com/Selectors/child#parentchild
$("#"+form+" > :input Drop the ">" in your selector, which literally means "a direct child of this", to which is *not* the case with your <div>'s in between <form> and <input>
http://docs.jquery.com/Selectors/child#parentchild
$("#"+form+" > :input Drop the ">" in your selector, which literally means "a direct child of this", to which is *not* the case with your <div>'s in between <form> and <input>