Skip to Content
jQuery: Visual QuickStart Guide
book

jQuery: Visual QuickStart Guide

by Steven Holzner
June 2009
Intermediate to advanced content levelIntermediate to advanced
240 pages
5h 19m
English
Peachpit Press
Content preview from jQuery: Visual QuickStart Guide

6. The jQuery Utility Functions

jQuery has a number of utility functions built in to make everyday JavaScript tasks easier. These functions are named jquery.XXX( ), where XXX( ) is the name of the function. You can also refer to them as $.XXX( ).

For example, the $.trim( ) function trims spaces from strings.

The utility functions can’t really be categorized. They are just a group of useful functions that jQuery offers to augment JavaScript—to make tasks in JavaScript easier. You could duplicate what they do in JavaScript yourself, but it takes far less time to use a utility function.

Examples of jQuery Utility Functions

jQuery offers many utility functions that work with arrays, such as the $.isArray( ) function; you pass this function an array, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning jQuery

Beginning jQuery

Jack Franklin

Publisher Resources

ISBN: 9780321679673Purchase book