Adding a drop down menu with jquery

Posted by Pete Herbert Penito on Stack Overflow See other posts from Stack Overflow or by Pete Herbert Penito
Published on 2010-04-09T18:57:13Z Indexed on 2010/04/09 19:43 UTC
Read the original article Hit count: 450

Filed under:
|

Hi everyone!

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?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript