Check if checkbox is ALREADY checked on load using jQuery
<p>I am currently using</p>

<pre><code> $("#some-box").click(function(){
     $("#main-box").toggle();
  });
</code></pre>

<p>Which works well, except for when the checkbox is part of a page that saves the checkboxes status. If a checkbox is saved as ticked, the main-box (which is revealed when the checkbox is clicked) is hidden on reload, and is only visible if the checkbox is clicked, which in now would mean "unticked" checkbox (as expected with the toggle).</p>

<p>How can I check on page load if the checkbox is already ticked, in which case to trigger the toggle automatically?</p>

<p>Thanks guys.</p>
