setPropertyValue

fun Element.setPropertyValue(name: String, value: String)(source)

Sets the value of the value attribute of property name, or adds the property if it does not exist.