Basic javascript stuff using JQuery

Basic javascript stuff using JQuery

Hi all,

I've got this idea in which Jquery can play a central role. I'm not too bright with javascript so I was wondering if someone could help me out with the following;

I'd like to have a form with a textfield in it. In this field I can enter a number and on .change of this field I'd like to have an amount of input fields equal to the amount entered in the textfield generated in the form just below the initial input field. How would I go about doing that?

I guess putting the textfield val in a variable and making a for loop. But I don't know how to code it or to implement the html the right way. Anyone willing to help out? Most appreciated