title: Setting an onchange event when the browser reloads
body: <p>I have the following code that works fine in the respect that it shows the input box when yes is selected.  My issue is if there is an error with any of the other boxes during the submit and the placeholder dropdown is set to yes it does not show the placeholderValue input box.</p>
  
  <p>How could I adjust this code so if my code does error and if the input box is set to yes it will display the placeholderValue input box.</p>
  
  <p><strong>jQuery:</strong>  </p>
  
  <pre><code>$("#add_fields_placeholder").change(function()
          {
              if($(this).val() == "yes")
          {
              $('label[for="add_fields_placeholderValue"]').show();
              $("#add_fields_placeholderValue").show();
          }
          else
          {
  
              $('label[for="add_fields_placeholderValue"]').hide();
              $("#add_fields_placeholderValue").hide();
          }
              });
  </code></pre>