In IE > 7 it can be done by checking if value
exists in the attributes
collection or using getAttribute()
which returns null, but in IE <= 7, this collection returns all the supported attributes and getAttribute()
returns an empty string, the same as element.value
.
Any hints?