Forum Moderators: open
The 1st one is populated upon page load (PHP)
The 2nd one is populated via javascript (no page reload) depending on the 1st select box value.
Upon submit the page will display a preview of the user inputs, with 2 submit buttons [send] and [edit]
My problem is if the user choose to edit, how can I make it that 2nd select box remember its value since after a page reload the 2nd select box doesnt have any contents (options),
Adding options to the 2nd select box is triggered by the 1st select box hence the following code is not possible.
<option value="value_here>" selected>Text Here</option>
note : The 2 select boxes pulled values from a DB table.