I'm trying to get the id attribute value from my div and put in calendar. I've tried many ways without success.
I have the following div that I created:
vv_lista_servico = vv_lista_servico +"<div class='fc-event fc-list draggable' data-event='{"id":""+item.id+""}' data-duration='00:30'>"+item.descr+"</div>";
When ready, I have the following html:
<div class="fc-event fc-list draggable ui-draggable ui-draggable-handle" data-event="{"id":"244"}" data-duration="00:30">Test 1</div>
When I dragging the event into fullcalendar my title and duration works and render on calendar, but the id does not work.
How I should create my html to work and get the id?
Thank's
See Question&Answers more detail:os