Search.../

type

Gets the element's type.

Description

Possible values include:

  • $w.TextInput
  • $w.TextBox
  • $w.RichTextBox
  • $w.RadioButtonGroup
  • $w.CheckboxGroup
  • $w.Dropdown
  • $w.SelectionTags
  • $w.Slider
  • $w.DatePicker
  • $w.UploadButton
  • $w.RatingsInput
  • $w.AddressInput
  • $w.Switch
  • $w.SignatureInput
  • $w.Captcha

Type:

stringRead Only
Mixed in from:$w.FormElement

Was this helpful?

Get the element's type

Copy Code
1let myType = $w("#myElement").type; // "$w.Type"