Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lets say this is the json echo:
- {"count1":12,"cc":13,"count2":32, "cc2": 123, "totalcount":2}
- In totalcount it echo the total number of counts
- jQuery.ajax({
- type: "POST",
- dataType: "json",
- url: "file.php",
- data: { amount: $("#amount").val() },
- cache: false,
- success: function(response){
- var x = 0;
- while (x>response.totalcount){
- x=x+1;
- $("p").append(response.count[x]); // this is where I need your help
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement