setAttributeValueByName

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

Sets the value of the value attribute of the single Element contained in this Element that has attribute name="[name]" to value, or does nothing if no single such Element exists.