Multiple dynamic selections

后端 未结 1 1852
情歌与酒
情歌与酒 2021-01-24 10:22

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 nee

1条回答
  •  佛祖请我去吃肉
    2021-01-24 11:03

    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

    Which 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.

    0 讨论(0)
提交回复
热议问题