Created
February 17, 2015 15:17
-
-
Save DWboutin/45bcfb40855ec378b4d6 to your computer and use it in GitHub Desktop.
Select won't change on F5 fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('select').each(function(){ | |
| var select = $(this); | |
| var html = select[0].outerHTML; | |
| var val = $(html).children('option:selected').val(); | |
| select.val(val); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment