Bind a click to a dynamic button with jQuery?

后端 未结 3 2085
旧时难觅i
旧时难觅i 2021-01-24 17:32

I want to create a button that has a jQuery click on the fly. After the user is done and hit the button I want to destroy the button and the jQuery click until a time I need it

3条回答
  •  爱一瞬间的悲伤
    2021-01-24 18:17

    I'm sorry to post to such an old and answered question. I had a similar problem and this answer helped me but didn't get me quite there. After trial and error... Here's my practical solution for adding areas to web page and removing them. I use it with dynamic form fields but your needs may vary.

    Here's part of the form in the static portion of the page.

    Email-tauluun

    Then we need some JavaScript functions. These ones use jQuery.

    
    

    Hopefully this helps someone and I didn't forget anything.

提交回复
热议问题