KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
HTML: <input id="sdata" type="hidden" value='{"1651":["12","1"],"1650":["30","0"],"1649":["20","0"],"1648":["13","2"],"1647":["11","0"],"1646":["10","0"],"1645":["12","0"],"1644":["8","0"],"1643":["16","1"],"1642":["10","1"],"1641":["10","0"],"1640":["18","3"]}' /> JS: var data = $.parseJSON($('#sdata').val()); $.each(data, function(id, sc) { alert(id); } OUT: 1640, 1641, 1642, ..., 1651 How to make it in reverse order (ex. 1651, 1650...)?
Tags (comma-separated)
Save Edits
Cancel