Question: So, lets say that we have this structure:

```
  <div id='allTempLinkHolder'>
    <div class='tempLink'>Value</div>
    <div class='tempLink'>Value 2</div>
    <div class='tempLink'>Value 3</div>
 </div>

```

How i can submit all of the different values of .tempLink with post ajax, for example to post them to fetch.php ?
Thanks!

Answer: 
if you simmply want an array sent:

```
var values = $.map($('.tempLink'), function(el, idx) {
    return $(el).text()
})

$.post('fetch.php', { values: values}, function(data) {
        /* do something with return data*/
})

```
Try this:

<http://jsfiddle.net/htKRf/3/>

```
var links = []

// Put all the tempLinks into an array. 
$.each($('.tempLink'), function (index, element) {
    links.push($(element).text());    
});

// Post it to the url.
$.post('fetch.php', JSON.stringify(links), function() { console.log("SUCCESS"); });

```

​