I have a form that needs to have certain elements hidden depending on which option is selected in a select list.

It works fine, but for this app, the form remains visible after it's been submitted (so the user can fine-tune search criteria), and when the page re-loads the hidden items become visible again.

This is the jQuery code I'm using:

Code:
$(document).ready(function() {
   $("#widget_type").change(function() {
      if($(this).find("option:selected").val() == "combobox") {
         $(".formats").slideUp("fast");
      }
   });
}
Is there a way to embellish it to keep the hidden item hidden when the form is reloaded?