09-19-2013 03:37 AM - edited 09-19-2013 05:53 AM
I have created one select options for creating dropdown menu let say on main.html page.
on that page I can able to select and it is also showing proper selected item.
<select data-bb-style="stretch" data-bb-label="Select Player:" id="customDropDown" onchange="setSelectedPlayer()" >
<option value="1" >Player 1</option>
<option value="2" >Player 2</option>
<option value="3" >Player 3</option>
<option value="4" >Player 4</option>
I am storing currently selected item in some variable using setSelectedPlayer() function call.
This variable contain correct value for selected item.
Now the problem is that when I go to someother page using "pushscreen()" let say on setting page.
and then came back to again to "main.html" but now my dropdown contain defualt value as selected and NOT my selected item.
I have already tried to set selected option using following on page load.
but focus is still on "defualt" option. Note that internally selected value is proper. I mean let say I have selected 2nd option then after coming back from "Setting" page, I am not again able to select 2nd option but focus is on default option.
Please help me I am really stuck for this little thing.
Hope to get reply soon.
Solved! Go to Solution.
09-21-2013 09:18 AM
09-25-2013 01:17 AM