jquery - loop through a json numeric array? -


I use $ .getJSON and here my php file is echo: back jsonstring

 < Code> ($ i = 1; $ i & lt; = 10; $ i ++) {$ nr [] = "NR" $ I; } $ Nr = json_encode ($ nr); Echo "{'' result ':' error ',' count ':' $ nr '}";  

How do I loop through all the NRs with jquery html ()?

I want to resize it back on the webpage:

nr 1 nr 2 nr 3 nr 4 nr 5 nr 6 nr 7 nr 8 nr 9 nr 10

in jquery

  array_data = eval (json_data ["count"]) " 

array_data will be [" nr1 "," nr2 ", "Nr3"), after you loop array_data, "nr4", "nr5", "nr5", "nr6", "nr7", "nr8", "nr9", "nr10"]


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -