select widget -> visit page 2nd time -> refresh selects
Hello,
i have a problem, again, with this Jquery Mobile Page-System:
I have some Selects (Selectmenu Widgets) on my site, i.e. for Color: BLUE and Size: 6.
When i choose Color RED and Size 7, the Page changes to another Page.
So the Problem is, when i go BACK:
The Selects are still on RED and 7, cause i have choosen this on the first site. But i want it to be refreshed, BACK ON blue and 6...
How can i do that?
Its not working like that:
- $(".ui-select").each(function( index ) {
- $(this).on( "selectcreate", function( event, ui ) {
- $(this).selectmenu( "refresh" );
- });
- });
thanks