Closed DaceyForward closed 10 months ago
When you use selected
that specifically goes on the option you want to be selected like this:
<option selected="option 1">
You may want to try having a default value that is selected such as having your first option be choose subject
Okay, good idea! I just added an option for choosing a subject. That works! Thank you!
What's the problem you're trying to solve?
I'm trying to keep the subject selected in the dropdown when editing a goal, but I can't seem to figure out how.
Post any code you think might be relevant (one fenced block per file)
If you see an error message, post it here. If you don't, what unexpected behavior are you seeing?
None
What is your best guess as to the source of the problem?
I need to add something in the ejs to make it select the already chosen and clicked subject for the goal.
What things have you already tried to solve the problem?
I've tried different things in bootstrap and html to keep the already chosen subject selected
Ex: (see photo below) The "subject area" in this image should have "math" chosen, and not "reading."
Paste a link to your repository here
https://github.com/DaceyForward/Project-2-Goal-Gather.git