110
rated 0 times
[
114]
[
4]
/ answers: 1 / hits: 16774
/ 11 Years ago, wed, april 24, 2013, 12:00:00
How can I use dropzone without using the class in the form.
I basically want to have a div
inside a form and call class=dropzone
in that div. But it doesn't seems to work.
Here is my code below:
<!DOCTYPE html>
<html lang=en>
<head>
<title></title>
<link rel=stylesheet href=css/basic.css />
<link rel=stylesheet href=css/dropzone.css/>
<script src=dropzone.min.js></script>
<script type=text/javascript>
var myDropzone = new Dropzone(div#myId, { url: file-upload})
</script>
<body>
<form action=upload.php>
<input type=text>
<div id=myId class=dropzone></div>
</form>
</body>
</html>
More From » jquery