I have a list of work orders that I am dropping into a Full Calendar. I need to have access to the work order's primary key so that I can update it's record in my MySQL database. So, I have simply added the work order's primary key to the title of the calendar event. Then, as I drop an event onto the calendar, the drop
event parses the HTML and grabs the work order's primary key, storing it in the event itself for later use.
The problem is that this is ugly! I don't want the primary key on the event both because it's ugly and because it takes up too much space.
How do I include the primary key of my record in my list of items to be be added to the calendar, but not actually display these primary keys? I have tried adding a <div style="visibility:hidden">
to the list items, but that only hides the HTML when the item is in the list. As soon as I drop it onto the calendar, the <div>
becomes visible again.
Any ideas?