I am trying to create a form with an input and image / file downloader so that it loads as soon as I press the submit button.
But my dropzone (previewsContainer) does not display itself when I put it on the form.
HTML
<form action="#" class="giga-form" id="my-awesome-dropzone"> <div class="col-md-5"> <h5>nimetus</h5> <input class="form-control" type="text" required> <h5>tüüp</h5> <select class="form-control" required> @foreach($types as $type) <option value="{{$type->id}}">{{$type->name}}</option> @endforeach </select> <h5>aadress</h5> <input class="form-control" type="text"> <h5>tellija</h5> <input class="form-control" type="text"> <h5>info</h5> <textarea class="form-control" rows="3"></textarea> </div> <div class="col-md-6 col-md-offset-1 top-pad"> <div class="ico-border"><i class="icon-unlock"></i></div> avalik. <a href="#"><b>Varja</b></a> <h5 class="top-br">pildid ja failid</h5> <div class="giga-table fixed thumbnails dropzone"> <div class="dropzone-previews"></div> </div> </div> <button type="submit">Continue</button> </form>
SCRIPT
{{ HTML::script("js/jquery-1.9.1.js") }} {{ HTML::script("js/jquery-ui-1.9.2.custom.min.js") }} {{ HTML::style('css/basic.css');}} {{ HTML::style('css/dropzone.css');}} {{ HTML::script('js/dropzone.js') }} <script> Dropzone.autoDiscover = false; // if this is true I get "URL not defined" in console. $(document).ready(function(){ Dropzone.options.myAwesomeDropzone = { // The camelized version of the ID of the form element // The configuration we've talked about above url: '
source share