Salesqueen Software Solution

Download Free Estimation Now Click Here
Notifications
Clear all

what is use of each() function?

3 Posts
3 Users
0 Reactions
150 Views
Posts: 100
Topic starter
(@sowmiya)
Estimable Member
Joined: 2 years ago

Use of each()

2 Replies
Posts: 100
 Kavi
(@kavi)
Estimable Member
Joined: 2 years ago

The internal pointer is advanced by the each() function while returning the key and value of the currently selected element. It should be noted that PHP 7.2 deprecates the each() function. A four-element array containing this element's key and value is returned.

Reply
Posts: 19
 M.
(@m)
Active Member
Joined: 2 years ago

The each() method designates a function to be executed for each element that matches. The loop can be terminated early by using return false.

Syntax:

\s$(selector).each(function(index,element))

Reply
Share: