title: jQuery equivalent of document.getElementById
body: <p>I have a piece of JavaScript code that I want to translate it to jQuery:</p>
  
  <pre><code> var target = document.getElementById('myID');
  
   ... do additional work here ...
  </code></pre>
  
  <p>The code above works just fine, no problem. However if I try to use it this way, nothing happens:</p>
  
  <pre><code> var target =  $("#myID");
  </code></pre>
  
  <p>What is the equivalent of <code>document.getElementById</code> in jQuery?</p>
  
  <p>P.S. jQuery library is loaded and the code is withing </p>
  
  <pre><code>    $(document).ready(function () {
  
  
         var target = document.getElementById('myID');
  
         ... do additional work here ...
  
  
         var target =  $("#myID");
  
      });
  </code></pre>