jQuery: if value is true without user action
<p>I want to show a div if the value of an input =='CP'.  </p>

<p>Right now this is my code: </p>

<pre><code>$(".register-type").change(function(){
    var value = $(this).val();
    if(value == 'CP'){
    $('.cp-show').show();
</code></pre>

<p>This works fine if they change the input, but if things get validated false and the page reloads, this input is still 'CP', but the div doesn't show...</p>

<p>Is there a way to correct this so that jquery checks if this is set on the page load?</p>
