How do I change the default text in dropzone.js?
dropzone.js, javascript, jquery
Solution
Add an element within your dropzone form as follows:
<div class="dz-message" data-dz-message><span>Your Custom Message</span></div>
Problem
I am using dropzone.js to upload files. However, I'm having difficulty changing the default text. I've tried instantiating the dropzone class: ``` $(document).ready(function(){ $(".foo").dropzone({ dictDefaultMessage: "hello" }); }); ``` With this markup: ``` <div class="span4"> <form action="http://localhost/post" method="post" accept-charset="utf-8" id="drop3" class="foo" enctype="multipart/form-data"> </form> </div> <div class="span4"> <form action="http://localhost/post" method="post" accept-charset="utf-8" id="drop4" class="foo" enctype="multipart/form-data"> </form> </div> ``` This certainly gives me the ability to upload files but the default text is blank. I tested the following: ``` $(".foo").dropzone(); ``` and I appear to get the same result - no default text. So.. how do I change the default text?