Vote count:
0
I am using bootstrap responsive calender for showing number of members registered per day in a month.
Here i can get the data from database per month in an array and i need to repeat the for loop up to the days in a particular month. It Throws me an error ..finally is it possible to run nested for loops
Here i s My Javascript Code:
$.ajax({ type: "POST", url: "my url", data: { present_month:$("#present_month").val() }, async:true, cache: false, success: function(data) { data=JSON.parse(data); var month =data.prev_month; // This is my previous month month=month.split('-'); var days_in_month=new Date(month[0],month[1],0).getDate(); var obj=JSON.parse(data.strength); //This is the data return from database in an array $('.responsive-calendar').responsiveCalendar('edit', { events: { for (var i = 1; i
Please get me out from this problem...Thanks in advance
asked 43 secs ago
bootstrap responsive calender
Aucun commentaire:
Enregistrer un commentaire