title: Blueimp jQuery multiple fileupload plugin $(this).fileupload() not a function
body: <p>Am using blueimp jQuery plugin for multiple fileupload for my web application in struts framework, but the problem is fileupload handler is not getting initialized by jQuery. I am getting $('#fileupload').fileupload not a function. Can any one help me to figure out where I am going wrong. </p>
  
  <pre><code>`&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
  pageEncoding="ISO-8859-1"%&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;title&gt;Insert title here&lt;/title&gt;
  &lt;link href="css/jquery.fileupload-ui.css" rel="stylesheet" type="text/css"/&gt;
  &lt;link href="css/jquery.fileupload-ui-noscript.css" rel="stylesheet" type="text/css"/&gt;
  &lt;link href="css/style.css" rel="stylesheet" type="text/css"/&gt;
  &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="js/jquery.iframe-transport.js"&gt;&lt;/script&gt;
  &lt;script src="js/main.js"&gt;&lt;/script&gt;
  &lt;script src="js/jquery.postmessage-transport.js"&gt;&lt;/script&gt;
  &lt;script src="js/jquery.ui.widget.js"&gt;&lt;/script&gt; 
  &lt;script src="js/jquery.fileupload.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;style type="text/css"&gt;
  .bar {
      height: 18px;
      background: green;
  }
  &lt;/style&gt;
  &lt;head&gt;
  &lt;body&gt;
  &lt;form id="fileupload" action="testAction.do?operation=uploadImages" method="POST" enctype="multipart/form-data"&gt;
  &lt;noscript&gt;&lt;input type="hidden" name="redirect" value="http://blueimp.github.io/jQuery-File-Upload/"&gt;&lt;/noscript&gt;
      &lt;div class="row fileupload-buttonbar"&gt;
          &lt;div class="span7"&gt;
              &lt;span class="btn btn-success fileinput-button"&gt;
                  &lt;i class="icon-plus icon-white"&gt;&lt;/i&gt;
                  &lt;span&gt;Add files...&lt;/span&gt;
                  &lt;input type="file" name="files[]" multiple&gt;
              &lt;/span&gt;
              &lt;button type="submit" class="btn btn-primary start"&gt;
                  &lt;i class="icon-upload icon-white"&gt;&lt;/i&gt;
                  &lt;span&gt;Start upload&lt;/span&gt;
              &lt;/button&gt;
              &lt;button type="reset" class="btn btn-warning cancel"&gt;
                  &lt;i class="icon-ban-circle icon-white"&gt;&lt;/i&gt;
                  &lt;span&gt;Cancel upload&lt;/span&gt;
              &lt;/button&gt;
              &lt;button type="button" class="btn btn-danger delete"&gt;
                  &lt;i class="icon-trash icon-white"&gt;&lt;/i&gt;
                  &lt;span&gt;Delete&lt;/span&gt;
              &lt;/button&gt;
              &lt;input type="checkbox" class="toggle"&gt;
              &lt;span class="fileupload-loading"&gt;&lt;/span&gt;
          &lt;/div&gt;
          &lt;div class="span5 fileupload-progress fade"&gt;
              &lt;div class="progress progress-success progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100"&gt;
                  &lt;div class="bar" style="width:0%;"&gt;&lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="progress-extended"&gt;&amp;nbsp;&lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;table role="presentation" class="table table-striped"&gt;&lt;tbody class="files"&gt;&lt;/tbody&gt;&lt;/table&gt;
  &lt;/form&gt;
  &lt;br&gt;
  
  &lt;div id="progress"&gt;
      &lt;div class="bar" style="width: 0%;"&gt;&lt;/div&gt;
  &lt;/div&gt;
  
  &lt;script&gt;
  jQuery(function () {
      jQuery('#fileupload').fileupload({
      dataType: 'json',
      done: function (e, data) {
          $.each(data.result.files, function (index, file) {
              $('&lt;p/&gt;').text(file.name).appendTo(document.body);
          });
      }
  });
  });
  &lt;/script&gt; 
  &lt;/body&gt; 
  &lt;/html&gt;`
  </code></pre>