Make dropzone.js aware of changes in DOM

时间:2015-06-25 18:43:57

标签: dropzone.js

I have some forms with the class dropzone added dynamically to the DOM after page load. How can I make dropzone.js aware of these addition in order to make sure they can be dropped upon instantly?

1 个答案:

答案 0 :(得分:1)

经过一番研究,我发现它很简单:

$(".newly-added-form").dropzone();