Question: I am stuck on part of the Javascript code to solve this: When the user selects Canada, a selection of Canadian provinces should appear when
I am stuck on part of the Javascript code to solve this:
When the user selects Canada, a selection of Canadian provinces should appear
when the user selects the United States, the selection of Canadian provinces should be removed and replaced with a similarly structured selection of American States.
the user clicks on a button
the existing select is removed from the div using the removeChild() method.
the correct selection is created and added to the div using the methods
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
