Skip to content

DomElementInfo.value?

DomElementInfo › value?

Official

Type: string

The value to be assigned. Applies to <input>, <select>, and <option> elements.

Example:

createEl('input', { value: 'foo' });