DOM Manipulation

Change Events

Change Events

The change event is useful for controls where the user commits a new choice, such as a select menu. The current value lives on the control at the time the event fires.

Reading the value during setup only captures the starting option. The summary should respond to the later selection.

Your task: When the plan select changes, update the summary to show the current selected plan value.

Free with a JS Exercises account

Sign in to start coding, run your solution, and keep your progress saved for later. No payment needed.

By continuing, you agree to our Terms and Privacy Policy. We'll send occasional product updates and news. You can unsubscribe anytime.

Change Events

The change event is useful for controls where the user commits a new choice, such as a select menu. The current value lives on the control at the time the event fires.

Reading the value during setup only captures the starting option. The summary should respond to the later selection.

Your task: When the plan select changes, update the summary to show the current selected plan value.

Free with a JS Exercises account

Sign in to start coding, run your solution, and keep your progress saved for later. No payment needed.

By continuing, you agree to our Terms and Privacy Policy. We'll send occasional product updates and news. You can unsubscribe anytime.

Console

Run code to see output.