SelectionProperty extension

Some HTML elements have special properties that are not addressable using attributes or styles, such as a form field’s text value and a checkbox’s checked boolean. Use this extension to get or set these properties.

on

Methods

propertyGet(String property) JSAny?
Returns the value of the specified property for the first (non-null) element in the selection.
propertySet(String name, Union2<EachCallback<JSAny?>, JSAny?>? value) Selection
Sets the property with the specified name to the specified value on selected elements.