About Pi Downloads Documentation Plugins Developer Forum Issues

pi.get2009-01-06 09:23:22

Summary

pi.get is a function that returns an element with the given id.

Syntax

pi.get(ID)

StaticMethods

byTag pi.get.byTag(tagName)
Returns a list of elements with the given tag name.

Examples

Example #1: Select the input element below and write the date into this

Source files of the above example:

example_1.html

<input id="date" type="text" />

example_1.js

pi.get('date').value = new Date;