call given via id of the table ?
call given via id of the table ?
I set up several tables dynamically with a different id for each table, I do not know the number of feed table.
I would like to call each table the corresponding data via this id. But I do not know how to find the id of the table being processed.
I use a part of the id for appler my table: $('[id^=TableRapprochement-]').DataTable({...
<table id="TableRapprochement-2345" class...
<table id="TableRapprochement-8906" class...
<table id="TableRapprochement-4216" class...
...
I have to pass the id for the call data: ... "+ $ (this) .attr (" id ") ... but the id of the table is undefined
Someone you an idea?
$(document).ready(function() {
$('[id^=TableRapprochement-]').DataTable({
"ajax": "import-banque-rapprochement.json.php?"+$(this).attr("id"),
responsive: true
} );
```php
<?
// Contenu de chaque onglet
$i=1;
foreach($arrAll as $Cle=>$Val){
echo '
<
div id="tab'.$i.'" class="tab-pane '.($i==1?"active":"").'"> ';
<?php >Liste des opération du compte : <?=$Val['IDCompte']?>
# | Username | Date registered | Role | Status | Action |
---|