title: How to add JQuery into PHP file
body: <p>I have a problem to add JQuery in  file this is my code:</p>
  
  <pre><code>        &lt;html&gt;
          &lt;head&gt;
  
          &lt;script src='http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js'&gt;
          &lt;/script&gt;
  
          &lt;script&gt; 
  
  
   $(document).ready(function(){
        $('#k1').click(function(){
              $('#k2').animate({marginLeft:'-50px'});
          $('#k3').animate({marginLeft:'-450px'});
          $('#k4').animate({marginLeft:'-450'});
  
        });
  
  
  
      });
          &lt;/script&gt; 
              &lt;/head&gt;
                  &lt;body&gt;
                  &lt;div class='wrapper'&gt;
                      &lt;div class='mainKotak'&gt;
                          &lt;div class='wKotak'&gt;
  
                                  &lt;div class='kotak' id='k1' &gt;&lt;/div&gt;
  
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;/body&gt;
                   &lt;/html&gt;
  </code></pre>
  
  <p>the code above is in </p>
  
  <pre><code>&lt;?php 
  echo" ";
  ?&gt;
  </code></pre>
  
  <p>the jquery isn't work , please someone help me because i'm newbie in jquery
  thanks</p>
  
  <p>SOLVED i'm just use jQuery with external javascript</p>