Buttons: rendered html different according to the environment
Buttons: rendered html different according to the environment

Hello,
I'm trying to customize the buttons behaviour in my tables.
So far, I try the following markup:
DT_TypesHoraires = $("#DT_TypesHoraires").DataTable({
dom: 'Bfrtip',
buttons: [
'copyHtml5',
{
text: 'TSV',
extend: 'csvHtml5',
fieldSeparator: ';',
extension: '.csv',
bom: true,
attr: {
id: 'btnExportTypesHoraires'
}
}
],
In my dev environment I get the following html:
<button class="dt-button buttons-csv buttons-html5" tabindex="0" aria-controls="DT_TypesHoraires" type="button" id="btnExportTypesHoraires"><span>TSV</span></button>
But in my production environment I get the following:
<a class="dt-button buttons-csv buttons-html5" tabindex="0" aria-controls="DT_TypesHoraires" href="#"><span>TSV</span></a>
This does not suit me. How can I get the same html markup in production than in development?
Thanks.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Please don't post duplicate questions. Just causes confusion. Please see the answer in your other post:
https://datatables.net/forums/discussion/60699/buttons-rendered-html-different-according-to-the-environment#latest
Kevin