I'm putting together a form with several required fields. If a required field is left blank, the form is redisplayed, with all previously entered values already filled in with the answers that were submitted.
Everything works fine when the form is redisplayed, except for the dropdown menu. It contains all 50 states and the District of Columbia as its values.
Is it possible to have the correct state set to "selected" when the form is redisplayed?
Yes, it should be possible to set the state of a dropdown to "selected". The exact method depends on how you are validating and re-displaying the form. I assume your using PHP for this but without a link to your code, it's only a guess.