About Pi Downloads Documentation Plugins Developer Forum Issues

pi.element.attribute.get

Summary

Returns the value of the named attribute on the specified element.

Syntax

element.get(attributeName);

Syntax

Example

>>> MyForm.attribute.set("action","send.php");
>>> MyForm.attribute.get("action");
"send.php"
>>> MyForm.attribute.get("angelineJolie");
null

See Also