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*/
})

```
```
var params;

$(".tempLink").each(function(){
  params=$.extend({}, params,   { "tmplink[]" , $(this).text() }  );
});

$.ajax({
    type: "POST",
    url: "url",
    data: params,
    success: function() {
      //Success code here
    }
});

```

in PHP you will receive it in an array `$_POST["tmplink"]`