title: Uncaught ReferenceError: jQuery is not defined at file
body: <p>I am using phonegap and every time it gives me error at this line .I am trying to submit the form through phonegap , javascript works but with jquery it always me this errro Uncaught ReferenceError: jQuery is not defined at file </p>
  
  <pre><code>  jQuery(function() {
  </code></pre>
  
  <p>Here Is my code </p>
  
  <pre><code>&lt;!DOCTYPE HTML&gt; 
  &lt;html&gt; 
    &lt;head&gt; 
  
    &lt;script type="text/javascript" charset="utf-8" src="cordova-1.5.0.js"&gt; 
    &lt;/script&gt;
    &lt;script type="text/javascript" src="jquery-1.6.4.min.js"&gt;&lt;/script&gt;
  
  
  
    &lt;script&gt;
    function validation()
    {
      alert('validation');
    }
  
    jQuery(function() {
  
      alert("login");
      /* stop form from submitting normally */
      event.preventDefault();
  
      /*clear result div*/
  
      /* get some values from elements on the page: */
      //var values = $(this).serialize();
      var values = "user";
      /* Send the data using post and put the results in a div */
      jQuery.ajax({
        url: server_url,
        type: "post",
        data: values,
        success: function() {
          alert("success");
          jQuery("#result").html('submitted successfully');
        },
        error: function() {
          alert("failure");
          jQuery("#result").html('there is error while submit');
        }   
      });
    });
  
    &lt;/script&gt;
  &lt;/head&gt; 
  </code></pre>