How to loop this array right from ajax? -


How to read this array in AJAX? You can see the response from this server:

  array ([success] => 1 [0] => Hey ([0] => Mr. Green [first name ] = & Gt; Mr. Green [1] = & gt; Hulk [Lastime] => Hulk [2] => 30 [age] => 30) [1] => Hey ([ 0] = & gt; Mrs. Greene [first name] = & gt; Mrs. Green [1] => Hulk [last name] => Hulk [2] => 28 [age] => 28) )   

And here is my Ajax Success

  Success: work (data) {if (data.success == true) {$ ("# output2 "). Attachments ("& lt; p>" + data.FirstName + ""); }}   

How to loop it to the right? Thank you.

Try it out:

  if (data.success = = ( ) ($ ("#output2"). ("& Lt; p & gt;" + v. Firstname = "& lt; / p & gt;");}}); }    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -