About Pi
Downloads
Documentation
Essential Documents
Getting Started to pi.js
Object Oriented Programming with pi.js
Reference
pi.env
pi.get
pi.util
pi.util.Array
pi.util.Element
pi.util.Hash
pi.util.Number
pi.util.String
pi.base
pi.element
pi.xhr
Native Objects
Array
Function
Number
String
Plugins
pi.comet
pi.cache
pi.layer
pi.storage
pi.win
Plugins
Developer Forum
Issues
pi.get
2009-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;