To answer your question directly, you can use jquery selectors on HTML returned from an ajax call like so, once you have loaded it into a jQuery object variable...
<script type='text/javascript'>
$(document).ready(function() {
$('#test').load('http://foobar.com/view.php?id=1186', function(html) {
var $html = $(html);
});
});
</script>
But honestly, it seems like you're attempting to loop through results. If this is JSON you're returning from the server, you need $.getJSON()
$.getJSON('http://foobar.com/view.php?id=1186', function(data) {
$.each(data, function(key, val) {
// deal with item
});
});