title: Why would javascript work on my Sony Ericsson C510 browser, but not javascript + jquery?
body: <p>I'm able to copy the following .htm file to my sony ericsson C510 and the mouseover works:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      &lt;!--
      if (document.images) {
          front = new Image
          back = new Image
  
          front.src = "front.png"
          back.src = "back.png"
      }
      function swapImage(thisImage,newImage) {
          if (document.images) {
              document[thisImage].src = eval(newImage + ".src")
          }
      }
      --&gt;
  &lt;/script&gt;
  &lt;img onMouseOver="swapImage('test','back')"
  onMouseOut="swapImage('test','front')"
   src="front.png"
      border="0"
      name="test"&gt;
  </code></pre>
  
  <p>But I can't get any jquery to work, e.g. the following example does not respond when I click on the links. I know the <code>jquery-1.4.2.min.js</code> file exists in the right place because I copied all the files in the directory:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
      &lt;head&gt;
      &lt;script type="text/javascript" src="javascript/jquery-1.4.2.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
              $(document).ready(function() {
              $("div &gt; div.question").click(function() {
                  if($(this).next().is(':hidden')) {
                  $(this).next().show();
                  } else {
                  $(this).next().hide();
                  }
              });    
              });
  
          &lt;/script&gt;
          &lt;style&gt;
              div.flashcard {
                  margin: 0 10px 10px 0;
              }
              div.flashcard div.question {
                  background-color:#ddd;
                  width: 400px;        
                  padding: 5px;    
                  cursor: hand;    
                  cursor: pointer;
              }
              div.flashcard div.answer {
                  background-color:#eee;
                  width: 400px;
                  padding: 5px;    
                  display: none;        
              }
          &lt;/style&gt;
      &lt;/head&gt;
  
  &lt;body&gt;
      &lt;div id="1" class="flashcard"&gt;
      &lt;div class="question"&gt;Who was Wagner?&lt;/div&gt;
      &lt;div class="answer"&gt;German composer, conductor, theatre director and essayist, primarily known for his operas (or "music dramas", as they were later called). Unlike most other opera composers, Wagner wrote both the music and libretto for every one of his works.&lt;/div&gt;
      &lt;/div&gt;
  
      &lt;div id="2" class="flashcard"&gt;
      &lt;div class="question"&gt;Who was Thalberg?&lt;/div&gt;
      &lt;div class="answer"&gt;a composer and one of the most distinguished virtuoso pianists of the 19th century.&lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>How can I get jquery to work in my Sony Ericsson C510 browser as plain javascript does?</strong></p>
  
  <h1>Added:</h1>
  
  <p>Based on rchern's suggestion, I tried this:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
      &lt;head&gt;
      &lt;script type="text/javascript" src="javascript/jquery-1.4.2.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
              $(document).ready(function() { 
                  $('#test').css("background-color","lightgreen");
                  alert("hi from jQuery"); 
              });
  
          &lt;/script&gt;
      &lt;/head&gt;
  
  &lt;body&gt;
  &lt;p&gt;test from html&lt;/p&gt;
  
  &lt;p id="test"&gt;jquery should turn this green&lt;/p&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>In firefox on the desktop it shows the popup and turns the line green, but on the cell phone jquery seems to have no effect, only the text is shown.</p>