Module Haste.DOM
contains function setAttr
for setting attribute of HTML-element:
setAttr (fromJust createProfileButton) "form" "registerNewUserForm"
It works fine, but how can I remove attribute? For example, I have a button with attribute disabled
and I want to make it enable. I try:
setAttr (fromJust createProfileButton) "disabled" ""
but it just make this:
<button type=submit ... disabled="">
I understand that I must remove this attribute, but module Haste.DOM
doesn't contain function removeAttr
... So what can I do?