I have the script below:
<script type="text/javascript" src="https://addevent.com/libs/atc/1.6.1/atc.min.js"asyncdefer></script><divtitle="Add to Calendar" class="addeventatc">
Add to Calendar
<span class="start">05/30/2017 16:00</span>
<span class="end">05/30/2017 18:00</span>
<span class="timezone">America/Caracas</span>
<span class="title">Summary of the event</span>
<span class="description">Description of the event</span>
<span class="location">Location of the event</span>
<span class="date_format">MM/DD/YYYY</span>
<span class="client">apjeYlqFLzfsSVnNdmRH28418</span>
</div>
I would like to put it in an html table, but when I put it in it only the button does not work
<table>
<tr>
<td>
<div title="Add to Calendar" class="addeventatc">
Add to Calendar
<span class="start">05/30/2017 16:00</span>
<span class="end">05/30/2017 18:00</span>
<span class="timezone">America/Caracas</span>
<span class="title">Summary of the event</span>
<span class="description">Description of the event</span>
<span class="location">Location of the event</span>
<span class="date_format">MM/DD/YYYY</span>
<span class="client">apjeYlqFLzfsSVnNdmRH28418</span>
</div>
</td>
</tr>
<tr>
<td>
<div title="Add to Calendar" class="addeventatc">
Add to Calendar
<span class="start">05/30/2017 16:00</span>
<span class="end">05/30/2017 18:00</span>
<span class="timezone">America/Caracas</span>
<span class="title">Summary of the event</span>
<span class="description">Description of the event</span>
<span class="location">Location of the event</span>
<span class="date_format">MM/DD/YYYY</span>
<span class="client">apjeYlqFLzfsSVnNdmRH28418</span>
</div>
</td>
</tr>
</table>
I'm trying to put a button in each row of the table, if you have more than one
I just want to get it from php
echo "<tr>
<td>
<div title=\"Add to Calendar\" class=\"addeventatc\">
Add to Calendar
<span class=\"start\">05/30/2017 16:00</span>
<span class=\"end\">05/30/2017 18:00</span>
<span class=\"timezone\">America/Caracas</span>
<span class=\"title\">Summary of the event</span>
<span class=\"description\">Description of the event</span>
<span class=\"location\">Location of the event</span>
<span class=\"date_format\">MM/DD/YYYY</span>
<span class=\"client\">apjeYlqFLzfsSVnNdmRH28418</span>
</div>
</td>
</tr> ";
Reference: link