[Answer]-JQuery works on first forloop and not working on other forloop element in Django

1👍

I got it to work by putting the for loop inside the event: feeder –

events: {
{% for vDate, vClass, vBadges in cal_list %}
"{{vDate}}": {"class":"{{vClass}}", {% if vBadges != 0 %}"number": "{{vBadges}}",         
"badgeClass": "badge-primary"{% endif %}},{% endfor %}
👤spam

Leave a comment