181
rated 0 times
[
184]
[
3]
/ answers: 1 / hits: 18644
/ 12 Years ago, thu, november 1, 2012, 12:00:00
Possible Duplicate:
Html select option lost data after submit
I have a select menu that should keep the selected option after the page refresh. This is the example:
<select id=form_frame name=frame onchange=getData(this);/>
<option value=data1 selected=selected>Data 1</option>
<option value=data2>Data 2</option>
</select>
Function getData just pull info to the user.
I'm using Smarty/php for the dynamic content.
Open to advice, thanks!
More From » php