Returns the value of the specified target with the specified type. The
value is returned as a number if the valueAsNumber property
returns a valid number, a Date if the valueAsDate property
is a valid Date (not null),
a boolean if the input is a checkbox or radio type, otherwise is returned as a string.
Returns the value of the specified
target
with the specified type. The value is returned as a number if thevalueAsNumber
property returns a valid number, a Date if thevalueAsDate
property is a valid Date (notnull
), a boolean if the input is acheckbox
orradio
type, otherwise is returned as astring
.