RSS Amplifier

Roam*notes · May 12, 2026

💡︎ Default value of an HTML form element

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

OK. I knew about <output> . I knew about HTMLFormElement.elements and the form attribute of form controls. But until today I did not know about the defaultValue and defaultChecked property of a form control, which returns its original value. It's been there since 2015!

OK. I knew about <output>. I knew about HTMLFormElement.elements and the form attribute of form controls.

But until today I did not know about the defaultValue and defaultChecked property of a form control, which returns its original value. It's been there since 2015!

Read on roam.be

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.