I have a form that asks users to fill in the quantity of an item they have sold. The form has about 20 products, each with a text input field to enter the quantity. I now find that I also need to capture each item's serial number.
I would like to design the form so that if the user enters 4 as the quanity purchased, four text input fields appear below the original, to accept the serial number information.
I would prefer this be done using AJAX. I am already using some AJAX on the page using Rafael Dohms brilliant autocomplete script for the company field, and I have used some other AJAX code on my site, but they have been modifiations of published scripts. I am not a Java/AJAX guru myself.
I am using PHP for the server side. I would also prefer to use AJAX to verify the serial numbers on the fly.
I really appreciate your help.