title: Integrating JQuery for use with Blackberry Widgets
body: <p>At the WES 2009 event RIM announced that they were almost 100% tested with using JQuery in Widget development, does anyone know how this works?</p>
  
  <p>I've tried following the demo from their site and added the following:</p>
  
  <pre><code>&lt;head&gt;
      ....
      &lt;script type="text/javascript" src="jquery-1.3.2.min.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      ....
      &lt;a href='#' id="viewDets"&gt;View Details&lt;/a&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>I've then added a standard jQuery click event in the other included js file:</p>
  
  <pre><code>$(function() {
      $('#viewDets').click(function() {
          alert('hi');
      });
  });
  </code></pre>
  
  <p>but when I click on the #viewDets linke nothing is happening.  I tried using an <code>&lt;input type="button" id="viewDets"&gt;</code> but nothing with this either.</p>
  
  <p>Lastly I tried adding a manual <code>onclick="testJQuery()"</code> to a button and then had the javascript as</p>
  
  <pre><code>function testJQuery(){
    alert($);
  }
  </code></pre>
  
  <p>which alerted the following:</p>
  
  <pre><code>function (E, F) {
    return new o.fn.init(E,F)
  }
  </code></pre>
  
  <p>which shows that jQuery was loaded correctly?  Does this mean that currently RIM don't support using jQuery in their widgets or do they have a seperate js file or something?</p>