How would I dynamically create input boxes on the fly?

后端 未结 4 798
走了就别回头了
走了就别回头了 2021-01-23 19:55

I want to use the value of a HTML dropdown box and create that number of input boxes underneath. I\'m hoping I can achieve this on the fly. Also if the value changes it should a

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-23 20:37

    I would go for jQuery.

    To start with look at change(), empty() and append()

    http://api.jquery.com/change/

    http://api.jquery.com/empty/

    http://api.jquery.com/append/

提交回复
热议问题