Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 4
Why isn't the theme selection working?
In my calculator code, I added a theme selection. I am using the syntax from stack overflow (selectedIndex) but I can't get the form to validate. The code only works for selectedIndex(0) but not the rest. Can anyone fix this (I am using Jquery) https://code.sololearn.com/W3y6iXfnxw7f/?ref=app
1 Answer
+ 7
I dont know much jquery, but I will start off by saying that nothing is being triggered when you click a list element, therefore not applying any themes.
In js it would be "onchange"
https://stackoverflow.com/questions/3487263/how-to-use-onclick-or-onselect-on-option-tag-in-a-jsp-page
onchange()
if value == "blue" then
changeCSS
end
end