0π
β
The value of element
is a String ("toUpload"
) at the point where you are calling element.dropzone()
. To use the dropzone
method like that, you need to call it on a jQuery element.
You probably meant something like this:
$('.' + element).dropzone( ...
Source:stackexchange.com