Skip to content

Commit 3515cf3

Browse files
committed
Back button action resets language menu option to [Selected] option.
Implemented JQuery to reset the position of the drop-down language menu to the selected option. The back button action will now revert back to the previous page while keeping the selected option as default value.
1 parent 927c58c commit 3515cf3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

en/00-01.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,11 @@
3535

3636
}
3737
</script>
38+
<script src="http://code.jquery.com/jquery-3.2.1.min.js"></script>
39+
<script>
40+
$(document).ready(function(){
41+
$("select").each(function(){
42+
$(this).val($(this).find('option[selected]').val());
43+
});
44+
});
45+
</script>

0 commit comments

Comments
 (0)