javascript - How do I change the default text in dropzone.js? -


i using dropzone.js upload files. however, i'm having difficulty changing default text.

i've tried instantiating dropzone class:

$(document).ready(function(){   $(".foo").dropzone({ dictdefaultmessage: "hello" }); }); 

with 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 gives me ability upload files default text blank.

i tested following:

 $(".foo").dropzone(); 

and appear same result - no default text. so.. how change default text?

add element within dropzone form follows:

<div class="dz-message" data-dz-message><span>your custom message</span></div> 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -