About Pi Downloads Documentation Plugins Developer Forum Issues

pi.element.attribute.has

Summary

Returns a boolean value indicating whether the specified element has the specified attribute or not.

Syntax

element.has(attributeName);

Example

>>> MyForm.attribute.set("action","send.php");
>>> MyForm.attribute.has("action");
true
>>> MyForm.attribute.get("angelineJolie");
false