i use $.getJSON and here is my php file echo:ing back jsonstring
for($i=1; $i<=10; $i++)
{
$nr[] = "nr" . $i;
}
$nr = json_encode($nr);
echo "{'result': 'error', 'count': '$nr'}";
how do i loop all the nr through with jquery html()?
i want to echo it back to webpage like:
nr 1 nr 2 nr 3 nr 4 nr 5 nr 6 nr 7 nr 8 nr 9 nr 10