$('#myID') vs $(myID)

$('#myID') vs $(myID)

Hi,

Just started using jQuery and found people using two different styles of syntax. can anyone shed some light on the correct way?

Option 1

  1.     <script src="jquery-1.4.4.js" type="text/javascript"></script>
  2.     <script type="text/javascript">
  3.         $(document).ready(function () {
  4.             $(myID).hide();
  5.         });
  6.     
  7.     </script>



Option 2 

  1.     <script src="jquery-1.4.4.js" type="text/javascript"></script>
  2.     <script type="text/javascript">
  3.         $(document).ready(function () {
  4.             $('#myID').hide();
  5.         });
  6.     
  7.     </script>


Thanks.