- Prototype Tutorial
- Prototype - Home
- Prototype - Short Overview
- Prototype - Useful Features
- Prototype - Utility Methods
- Prototype - Element Object
- Prototype - Number Processing
- Prototype - Strings Processing
- Prototype - Array Processing
- Prototype - Hash processing
- Prototype - Basic Object
- Prototype - Templating
- Prototype - Enumerating
- Prototype - Event Handling
- Prototype - Form Management
- Prototype - JSON Support
- Prototype - AJAX Support
- Prototype - Expressing Ranges
- Prototype - Periodical Execution
- Prototype Useful Resources
- Prototype - Quick Guide
- Prototype - Useful Resources
- Prototype - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Prototype - Utility Methods
127 Lectures 11.5 hours
This chapter details all these useful methods with examples.
|S.No.||Method & Description|
If provided with a string, returns the element in the document with matching ID; otherwise returns the passed element.
Takes an arbitrary number of CSS selectors (strings) and returns a document-order array of extended DOM elements that match any of them.
Converts the single argument it receives into an Array object.
Returns the value of a form control. This is a convenience alias of Form.Element.getValue.
Converts objects into enumerable Hash objects that resemble associative arrays.
Creates a new ObjectRange object.
Splits a string into an Array, treating all whitespace as delimiters.
Accepts an arbitrary number of functions and returns the result of the first one that doesn't throw an error.
This method retrieves (and extends) all the elements that have a CSS class name of className.
However, this method has been deprecated in the latest versions of Prototype.