title: Load hidden div with checkbox on load
body: <p>So I have a bunch of divs that are hidden on load unless a checkbox is ticked.</p>
  
  <p>It works on the change event, but on the refresh of the page the divs return hidden unless you turn the checkbox off and then back on.</p>
  
  <p>I was wondering if there is a way to check which checkbox is ticked on load and then display:block, rather than ticking and unticking.</p>
  
  <p><strong>HTML/PHP</strong></p>
  
  <pre><code>&lt;div class="misc-pub-section"&gt;
      &lt;label&gt;&lt;b&gt;Year of release&lt;/b&gt;&lt;/label&gt;
      &lt;input name="review_release_year" value="&lt;?php echo $review_release_year; ?&gt;" /&gt;
  &lt;/div&gt;
  
  &lt;div class="misc-pub-section"&gt;
      &lt;label&gt;&lt;b&gt;Director/Author/Company/Developer&lt;/b&gt;&lt;/label&gt;
      &lt;input name="review_owner" value="&lt;?php echo $review_owner; ?&gt;" /&gt;
  &lt;/div&gt;
  
  &lt;div class="misc-pub-section"&gt;
      &lt;label&gt;&lt;b&gt;Generic Website Link&lt;/b&gt;&lt;/label&gt;
      &lt;input name="review_website_link" value="&lt;?php echo $review_website_link; ?&gt;" /&gt;
  &lt;/div&gt;
  
  &lt;div class="misc-pub-section feature-short-webseries" style="display:none;"&gt;
      &lt;label&gt;&lt;b&gt;IMDb Title Link&lt;/b&gt;&lt;/label&gt;&lt;br/&gt;
      &lt;em style="color: #999;"&gt;imdb.com/title/&lt;/em&gt;&lt;input size="9" name="review_imdb_link" value="&lt;?php echo $review_imdb_link; ?&gt;" /&gt;
  &lt;/div&gt;
  
  &lt;div class="misc-pub-section feature-short-webseries" style="display:none;"&gt;
      &lt;label&gt;&lt;b&gt;Story rating (out of 5)&lt;/b&gt;&lt;/label&gt;
      &lt;input max="5" name="review_story_rating" value="&lt;?php echo $review_story_rating; ?&gt;" /&gt;
  &lt;/div&gt;
  
  &lt;div class="misc-pub-section feature-short-webseries-videogame" style="display:none;"&gt;
      &lt;label&gt;&lt;b&gt;Enjoyment rating (out of 5)&lt;/b&gt;&lt;/label&gt;
      &lt;input max="5" name="review_enjoy_rating" value="&lt;?php echo $review_enjoy_rating; ?&gt;" /&gt;
  &lt;/div&gt;
  
  &lt;div class="misc-pub-section feature-short" style="display:none;"&gt;
      &lt;label&gt;&lt;b&gt;Soundtrack rating (out of 5)&lt;/b&gt;&lt;/label&gt;
      &lt;input max="5" name="review_sound_rating" value="&lt;?php echo $review_sound_rating; ?&gt;" /&gt;
  &lt;/div&gt;
  
  &lt;div class="misc-pub-section webseries" style="display:none;"&gt;
      &lt;label&gt;&lt;b&gt;Attention span rating (out of 5)&lt;/b&gt;&lt;/label&gt;
      &lt;input max="5" name="review_span_rating" value="&lt;?php echo $review_span_rating; ?&gt;" /&gt;
  &lt;/div&gt;
  
  &lt;div class="misc-pub-section hardware-software" style="display:none;"&gt;
      &lt;label&gt;&lt;b&gt;Features rating (out of 5)&lt;/b&gt;&lt;/label&gt;
      &lt;input max="5" name="review_features_rating" value="&lt;?php echo $review_features_rating; ?&gt;" /&gt;
  &lt;/div&gt;
  
  &lt;div class="misc-pub-section hardware-software" style="display:none;"&gt;
      &lt;label&gt;&lt;b&gt;Function rating (out of 5)&lt;/b&gt;&lt;/label&gt;
      &lt;input max="5" name="review_function_rating" value="&lt;?php echo $review_function_rating; ?&gt;" /&gt;
  &lt;/div&gt;
  
  &lt;div class="misc-pub-section hardware-software" style="display:none;"&gt;
      &lt;label&gt;&lt;b&gt;Value rating (out of 5)&lt;/b&gt;&lt;/label&gt;
      &lt;input max="5" name="review_value_rating" value="&lt;?php echo $review_value_rating; ?&gt;" /&gt;
  &lt;/div&gt;
  
  &lt;div class="misc-pub-section software" style="display:none;"&gt;
      &lt;label&gt;&lt;b&gt;Operating System&lt;/b&gt;&lt;/label&gt;
      &lt;input name="review_system_rating" value="&lt;?php echo $review_system_rating; ?&gt;" /&gt;
  &lt;/div&gt;
  
  &lt;div class="misc-pub-section videogame" style="display:none;"&gt;
      &lt;label&gt;&lt;b&gt;Graphics rating (out of 5)&lt;/b&gt;&lt;/label&gt;
      &lt;input max="5" name="review_graphics_rating" value="&lt;?php echo $review_graphics_rating; ?&gt;" /&gt;
  &lt;/div&gt;
  
  &lt;div class="misc-pub-section videogame" style="display:none;"&gt;
      &lt;label&gt;&lt;b&gt;Gameplay rating (out of 5)&lt;/b&gt;&lt;/label&gt;
      &lt;input max="5" name="review_gameplay_rating" value="&lt;?php echo $review_gameplay_rating; ?&gt;" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>jQuery</strong></p>
  
  <pre><code>$(function() {
      var a = $("#in-review-type-14"), b = $("#in-review-type-67"), f = $("#in-review-type-68"), d = $("#in-review-type-69"), e = $("#in-review-type-70"), c = $("#in-review-type-71"), h = $("#review-typechecklist input");
    $(h).change(function() {
      a.is(":checked") || b.is(":checked") || c.is(":checked") ? $(".feature-short-webseries").show() : $(".feature-short-webseries").hide();
      a.is(":checked") || b.is(":checked") || c.is(":checked") || e.is(":checked") ? $(".feature-short-webseries-videogame").show() : $(".feature-short-webseries-videogame").hide();
      a.is(":checked") || b.is(":checked") ? $(".feature-short").show() : $(".feature-short").hide();
      c.is(":checked") ? $(".webseries").show() : $(".webseries").hide();
      f.is(":checked") || d.is(":checked") ? $(".hardware-software").show() : $(".hardware-software").hide();
      d.is(":checked") ? $(".software").show() : $(".software").hide();
      e.is(":checked") ? $(".videogame").show() : $(".videogame").hide()
    })
  });
  </code></pre>