Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making <select> script working within divs #2

Merged
merged 1 commit into from Mar 22, 2021

Conversation

iuliandscu
Copy link

@iuliandscu iuliandscu commented Mar 22, 2021

As for the original code, you are unable to use the select tag within other divs, so I made a little update to the script.

The script within index.html looks like this now:

<script type="text/javascript"> var l = new LanguageSelector(); $(document).on("change", "#langSelector", function () { var s = $(this).children("option:selected").val(); l.setLang(s); window.location = "index.html"; }); l.parse(); </script>

@lablnet lablnet self-requested a review March 22, 2021 10:36
@lablnet lablnet added bug Something isn't working enhancement New feature or request labels Mar 22, 2021
@lablnet
Copy link
Owner

lablnet commented Mar 22, 2021

Hey, @iuliandscu very thanks you so much for your time to contribute in this small library.

@lablnet lablnet merged commit 9555602 into lablnet:master Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants