title: How to open jQuery dialog on html CheckBox checked(using jQuery)?
body: <p>I want to popup a jQuery dialog when a html checkbox is checked. I'm using following code. But it's not working.</p>
  
  <pre><code>$(document).ready(function () {
          $('#chkBoxHelp').click(function () {
              if ($(this).is(':checked')) {
                  $("#txtAge").dialog();
              }
          });
      });
  </code></pre>
  
  <p>And the html is as below:</p>
  
  <pre><code>&lt;input type="checkbox" id="chkBoxHelp"/&gt;
  &lt;div id="txtAge" style="display: none;"&gt;Age is something&lt;/div&gt;
  </code></pre>
  
  <p>Please help me.</p>
  
  <p>Also I want to uncheck the checkBox when popup will be closed. Checkbox is in a jQuery popup box. I need to open another popup on checkbox checked.</p>
  
  <p>Thanks in Advance.</p>