Monday 15 March 2010

jquery break apart return string from ajax -


I have an AJAX call for php which is listed as a string of li objects Does not
I can not change the php part.

Question:
How can I differentiate return data from each li with an AJAX call in the object and Push into an array?

  var arr = []; Li. 
  • Lt; / li> li & gt; Content & lt; / li & gt; Var allli = data.split (); arr.push (eachLI);} < / Div>

      $ .post ('process.php', function (data) {/ / Data returns a string such as: "
  • Content
  • Content Each LI = $ (data);}

    demo --- ->

  • No comments:

    Post a Comment