Here is the following example http://jsfiddle.net/coderslay/FBcKP/
I have a div like this
<div id="test">
<label>aaaaaaaaaaaa</label>
<label>bbbbbbbbbbbb</label>
<label>cccccccccccc</label>
<label>dddddddddddd</label>
</div>
And the jquery i have written to get the contents is here
var values = $('#test').find('label').text()
I need to get the values as an array containing aaaaaaaaaa,bbbbbbbbb,ccccccccc,ddddddddd
How to do that using jquery?
You can use
mapmethod.http://jsfiddle.net/ekAB5/