What should I do with form inputs' values when I hide the inputs?
<p>These fields are hidden correctly, but what is the best way of setting the hidden field values.</p>

<pre><code>$j.registerType = {
    '' : $j([]),
    'srotc_cadet' : $j('#vm_schoolstate_divContainer,#vm_srotcschool_divContainer,#vm_mslevel_divContainer'),
    'srotc_intructor' : $j('#vm_schoolstate_divContainer,#vm_srotcschool_divContainer'),
    'jrotc_cadet' : $j('#vm_highschool_divContainer,#vm_highschoolstate_divContainer,#vm_highschoolcity_divContainer')
  };

  $j('#vm_registertype').change(function() {
    // hide all
    $j.each($j.registerType, function() { this.hide(); });
    // show current
    $j.registerType[$j(this).val()].show();
  }).change();


  $j('#vm_registertype').change(function() {
   var regType =  $j('#vm_registertype').val();
   switch (regType) { 
   case "srotc_type":
    $j('#vm_highschool_field,#vm_highschoolstate_field,#vm_highschoolcity_field').val("DOES NOT APPLY");
    break;
    }

   }).change();
</code></pre>

<p><hr /></p>

<p>I just notice the "srotc_type" error. changed it but the code still doesn't work....</p>
