title: Using jQuery in jira
body: <p>I am trying to develop a plugin for jira and I'm having issues with jquery. I am pretty sure that its already part of the framework and all i need to do is include it but nothing seems to be working.</p>
  
  <p>I have tried putting this in my atlassian-plugin.xml file</p>
  
  <pre><code>&lt;web-resource key="jquery" name="jquery" &gt;
      &lt;dependency&gt;jira.webresources:jira-global&lt;/dependency&gt;
      &lt;resource type="download" name="jquery.js" location="/includes/javascript/jquery.js" /&gt;
  &lt;/web-resource&gt;
  </code></pre>
  
  <p>I have tried it without the dependency as well</p>
  
  <p>I have tried putting <code>#requireResource("jira.webresources:jira-global")</code> in my velocity template and that doesnt work either. THis is my js in my input.vm file</p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
      jQuery(function($) {
          $('.questions').hide();
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>Everything I seem to do just results in the <code>Uncaught ReferenceError: jQuery is not defined</code></p>
  
  <p>at a bit of a loose end now not really sure what to try next!</p>