In a PHP page I have a list of results.
I want to get the number of results by date in order to display a pie chart.
It\’s what i have:
<span id=\"tweetdate_1_12-11-2012\">...</span>
<span id=\"tweetdate_2_12-11-2012\">...</span>
<span id=\"tweetdate_3_12-11-2012\">...</span>
<span id=\"tweetdate_4_12-11-2012\">...</span>
<span id=\"tweetdate_1_11-11-2012\">...</span>
<span id=\"tweetdate_2_11-11-2012\">...</span>
<span id=\"tweetdate_1_10-11-2012\">...</span>
<span id=\"tweetdate_2_10-11-2012\">...</span>
I want to get in javascript :
1. The dates like this: 10-11-2012, 11-11-2012, 12-11-2012
2. The number of results by dates: 2, 2, 4
I have recovered the dates but not in the good order (olded first) and not the number of theses dates.
Is it possible?
Thanks





Rating:
The post javascript – Count number of span id by date appeared first on Javascript ASK.
via Javascript ASK http://javascriptask.phpfogapp.com/javascript-count-number-of-span-id-by-date.html
No comments:
Post a Comment