jQuery set selected value in option box once the box has been loaded
- by Maarten
I want to preset the value of a selectbox based on a hidden field. I need this after an error has been detected in a form to avoid the user having to set the value themselves again.
I do this by setting the value of a hidden field server side.
The problem I have seems to be that the select box isn't done yet at the time I try to set the selected…