hi i want to recover id use dropzone but it gives me error Uncaught SyntaxError: Unexpected token '.'
i don't know why.
var id = $("#id").html();
Dropzone.options.dropzone = function(){console.log(id)};
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.4.0/min/dropzone.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.4.0/dropzone.js"></script>
<h3 class="jumbotron" id="id">241</h3>
I don't the package but you have a syntax error here.
If Dropzone.options.dropzone suppose to be an object you should pass it with a set of key and values like this:
Or if it supposes to get a function do it like this:
Does one of these solutions solves your problem?