Here’s the situation I have a webpage which has one drop down called prefer. I wanted the user to be able to choose one option and then have a link next to it called “Add” which generates another textbox with the same options, i was going to use jquery to show an additional drop down.
But if possible I wanted to put the select box in an array and then loop through this process infinitely. so I could call select name=”prefer[]” and somehow put in a variable which increases.
Afterwards, I could use php to cycle through the array and utilize each one.
Could I do this with Javascript somehow?
You could clone the select box and append it to the form(I put it in a div). Edit: When you post you should get an array of values in php(prefer[index]).
php example: