JQuery: Dynamically create select Tag

后端 未结 4 575
一个人的身影
一个人的身影 2020-12-16 12:40

I am using JQuery to dynamically (based on user choice) create tag. User enters require options in a text box and my code creates select tag of it. Script is:



        
4条回答
  •  猫巷女王i
    2020-12-16 13:23

    Slight amendment to the answer by Ravi - appending each element one by one is a surprisingly high cost operation.

    var s = $("
                            
        
    提交评论

提交回复
热议问题