diff --git a/js/jquery.polyglot.language.switcher.js b/js/jquery.polyglot.language.switcher.js index c7d41a2..323151b 100644 --- a/js/jquery.polyglot.language.switcher.js +++ b/js/jquery.polyglot.language.switcher.js @@ -296,7 +296,7 @@ function toLiElement(option) { var id = $(option).attr("id"); - var value = $(option).attr("value"); + var value = $(option).val(); var text = $(option).text(); var liElement; if (isStaticWebSite) { @@ -390,4 +390,4 @@ }; -})(jQuery); \ No newline at end of file +})(jQuery);