Hello I am trying to display json data in each tab and with datatable Can any one tell me how can I do this?
I try looking on google No luck
i like it to be like this https://www.w3schools.com/bootstrap/tryit.asp?filename=trybs_tabs_dynamic&stacked=h
but with datatable and its own coin list like btc first tab etc from json file
EDIT the code what stacey gave me it dont show it just shows me a blank page like below image unless its java script? But need it in json?
https://i.stack.imgur.com/jp6w5.jpg
list.json
[{"coinlist",
"Bitcoin faucets":
"faucet name":"btc Faucet",
"minutes": "5",
"amount": "90",
"claim link": "http://bitcoinsfaucets.com",
// next faucet off bitcoin goes here!
},
{
"eth faucets":
"faucet name":"eth Faucet",
"minutes": "15",
"amount": "1000",
"claim link": "http://ethwebsite.com",
// next faucet off eth goes here!
},
{
"bitcore faucets":
"faucet name":"bitcore Faucet",
"minutes": "24",
"amount": "5000",
"claim link": "http://bitcorefaucets.com",
// next faucet off bitcore goes here!
},
{
"primecoin faucets":
"faucet name":"prime Faucet",
"minutes": "55",
"amount": "3000",
"claim link": "http://primecoinfaucets.com",
// next faucet off primecoin goes here!
]
}
]
datatable
<table id=“list” class="table table-bordered table-condensed table-hover" cellspacing="0" width="100%">
<thead>
<tr>
<th>name</th>
<th>timer</th>
<th>amount</th>
<th>cliam link</th>
</tr>
</thead>
<tfoot>
</tfoot>
</table>
</div>
javascript
<script type="text/javascript">
$(document).ready(function() {
$(‘#list’).DataTable();
} );
</script>