title: Change javascript change function to work with page load as well
body: <p>I'm using the following code on a form select field to disable a text box when you choose an option</p>
  
  <pre><code>$(document).ready(function(){
  $('#Automatic').change(function(){
  $('#InstallDate').prop('disabled', $(this).val() == "TBD");
  });
  });
  </code></pre>
  
  <p>It works fine if you choose this option from the select menu, but this form is an edit page of an existing entry, so we're pulling whatever value they selected before from MySQL.</p>
  
  <p>So how can I convert this to also do on load if the default value will be TBD?</p>