I need to get a list of comma-separated values from jQuery ajax data returned from the server. The data I am getting is as below
<div id="1" class="clicked">A</div>
<div></div>
<div id="2" class="clicked">B</div>
<div></div>
<div id="3" class="clicked">dsf</div>
<div></div>
<div id="4" class="clicked">fd</div>
<div class=users>[email protected],[email protected]</div>
This is the data that I get when the alert it. I need to extract the div with class = users and update it to another div as lists. How is it possible.. Please help
$('<div />').append(dataFromAjax).find('.users').text()