map

英[mæp] 美[mæp]

n. Map, celestial map; something similar to a map; face , face; genetic map (arrangement of genes on chromosomes)

vt. draw (a region, etc.) map; survey; detailed planning; [genetics] comparison

jquery map() method syntax

Function:map() passes each element to the current matching collection through the function and generates a new jQuery object containing the return value.

Syntax:.map(callback(index,domElement))

##Parameters:

Parameters Description callback(index,domElement) The function object called for each element in the current collection .

Note:Since the return value is an array encapsulated by jQuery, use get() to process the returned object to get the underlying array.

jquery map() method example

     

Values:

Run instance »

Click the "Run instance" button to view the online instance