I just started learning to code a few days ago and was trying to do something that acts like a calculator for high school level maths and ran into a problem. I was trying to use HTML to create two drop down menus, but then use Java script so that the second one’s options were dependent on the first one’s. Unfortunately, all of the options except the first one on the second menu seemed to remain blank.
I would also appreciate knowing how to include code in a post, if that’s acceptable here
Yep, it sure is! But you may need just to spend a few minutes here, reading posts etc. to lift your trust level. (It only takes a few minutes.) Then you can post code etc. (Actually, I thought you could anyway, but o well.) There is a </> that formats your code when you highlight it, or you can use Markdown code formatting.
I moved your post to the JS forum, as you’ll need that to make your dropdown work.
Thank you! I always seem to miss simple errors like that. I’d also like to know whether this is a really ineffiecient way of doing this as I felt like there must be a better way while i was writing it