retain show/hide states upon form validation
<p>In my form I show/hide certain divs based on the radio button selection by the user. For example:</p>

<pre><code>$('input[name=\'pick_up_point\']').change(function() {
if($($(this)).val() == 'pick_up_airport')
{
    $('#pick_up_airport_div').slideDown();
    $('#start_point_div').hide();
}
});
</code></pre>

<p>Now when the form is submitted, and if there is an error the form is redisplayed. The validation is working fine, except of course the divs are back in their original states. How can I retain the show/hide states?</p>
