Misc_Each
# jQuery.each() Method
[jQuery Misc Methods](#)
## Example
Iterate over array elements
$(function(){ $.each([52, 97], function(index, value){alert(index + ': ' + value); }); })
[Try it Β»](#)
* * *
## Definition and Usage
The jQuery.each() function is used to iterate over specified objects and arrays.
* * *
## Syntax
_$_.each( object, callback )
| Parameter | Description |
| :--- | :--- |
| _object_ | Object type. Specifies the object or array to iterate over. |
| _callback_ | Function type. Specifies the function to execute for each iteration. |
* * *

## More Examples
(#)
Iterate over object properties.
(#)
Iterate over an array, displaying both the key and the value.
(#)
Iterate over an array, accessing both the current element and its index.
(#)
Iterate over an element's attributes, accessing both the key and the value.
* * jQuery Misc Methods](#)
YouTip