title: $(...).on is not a function - jQuery Error
body: <p>I am using dialog box, which I am closing when a user click anywhere on page expect that dialog box.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>$('body').on('click','.ui-widget-overlay',function()
  { 
      $('#myRateSettingsPopup').dialog('close'); 
  }); 
  </code></pre>
  
  <p>Somehow its returning an error:</p>
  
  <p><strong>$(...).on is not a function</strong> </p>
  
  <p>What is wrong with my code ?</p>
  
  <p>I am using jquery-1.6.1.min.js , but I cannot update it to the latest version. I am bound.</p>
  
  <p>Is there any other way to do this ?</p>