레퍼런스 value()

value()

Returns or sets the element's value.

Calling myElement.value() returns the element's current value.

The parameter, value, is an optional number or string. If provided, as in myElement.value(123), it's used to set the element's value.

예제

구문

value()
value(value)

매개변수

value
String|Number:

반환값

String|Number: value of the element.

관련 레퍼런스