pagination

lets say I create a module and one of the text fields is for collecting ip address. some times i only need the one but there are times where I have to add several in this situation is there a way aka a button i can click and another text field is automatically generated below the main ip text field.

Any help would be fantastic as i have been trying to figure this out for hours now .

Thanks Lads