PDA

View Full Version : Add new input box when needed?



TomBower
May 23rd, 2010, 12:18 AM
I'm trying out this recipe idea of mine and I was wondering how you would go about doing this.

Basically there are two text boxes on a page for you to enter ingredients with a piece of text saying 'add another ingredient' for when you have filled the other boxes. When you click it, another text box appears for you to add another ingredient.


How could I do this?

Thanks.

optimus203
May 23rd, 2010, 03:16 AM
This link (http://stackoverflow.com/questions/1251086/adding-new-text-box-using-javascript) might help. I believe you need Javascript to accomplish this.