Dynamically create checkbox with JQuery from text input

后端 未结 3 596
执念已碎
执念已碎 2020-12-02 15:34

In my cms I have a checkbox group for categories. I would like to have a text input below that where the user can input the name of a new category and it will dynamically ad

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-02 16:16

    Put a global variable to generate the ids.

    
    

提交回复
热议问题