Skip to content

DomElementInfo.type?

DomElementInfo › type?

Official

Type: string

The type to be assigned. Applies to <input> and <style> elements.

Example:

createEl('input', { type: 'text' });