I need a way of having multiple selections but only one visible at a time. When the user wants to add another selection he/she clicks a button,checkbox,radio..whatever They need to be able to add an unlimited number of selections. Any Ideas?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Is there a way to play audio on a mobile browser w
Old question, but might as well add my 2 cents, in case anyone else wants to know an answer.
I would use JavaScript to create a
<select>
element in a "more" section, from a JavaScript loop. For example, your first page would haveWhich could setup your basic select element, and the
New Select Box
would activate this JavaScript function code:This whole thing can run with only those two code snippets, and no jQuery code is needed.