Responding to click event of element added to document after page load

前端 未结 6 1634
无人及你
无人及你 2020-12-12 00:54

I am writing a page which uses a lot of in situ editing and updating using jQuery for AJAX.

I have come accross a problem which can best be summarized by the workfl

6条回答
  •  爱一瞬间的悲伤
    2020-12-12 01:30

    you can use live() that binds a function to all elements matching your selection, even those created in the future: http://api.jquery.com/live/

提交回复
热议问题