- Joined
- Nov 24, 2024
- Messages
- 2
- Reaction score
- 0
Hello so i'm coding a project and ran into a issue that neither me or AI can identify lol i'm coding python scripts mostly i'm not a frontend guy...but got to code a website. what i am doing worked fine before then just stopped working and i got no errors or anything else...
the issue is i'm using a
in the html code to pick a language on the website. and when i set on the
and it won't activate the handler really it seems like. can't figure out the issue it displays no errors in the console...so i usually don't code JS but i don't get it.... shouldn't it display any type of error if something is wrong always? i have been going through the code several times and see nothing wrong. i tried f5 for updating the page and tried in different web browsers etc....as i said it worked earlier without issues...
here is the code:
appreciate the help. Thank you
the issue is i'm using a
in the html code to pick a language on the website. and when i set on the
const selection_dropdown = $('#selected_lan');
selection_dropdown.on('change', function() {
var selectedValue = $(this).val();
window.location.hash = selectedValue; // Change the hash to the selected value
setLanguage(selectedValue); // Update the language immediately
console.log("switched to:", selectedValue);
});
and it won't activate the handler really it seems like. can't figure out the issue it displays no errors in the console...so i usually don't code JS but i don't get it.... shouldn't it display any type of error if something is wrong always? i have been going through the code several times and see nothing wrong. i tried f5 for updating the page and tried in different web browsers etc....as i said it worked earlier without issues...
here is the code:
$(document).ready(function() { var language = { eng: { - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
pastebin.com
appreciate the help. Thank you