Hi to all,
Hi to all,
$(document).ready(function () {
$('.dataTable').on('click', 'tbody tr', function() {
ipAddress = table.row(this).data().country;
var tableRow = $(this).closest('tr').index(); // GET TABLE ROW NUMBER
$.ajax({
type: "GET",
data: { ip: ipAddress },
url: "{{ route('orders.getCountry') }}"
}).then(function(data){
$('.dataTable').dataTable().fnUpdate(data, [tableRow], 7, false);
});
});
});
Answers
Can you explain what the issue is, please. Plus, we're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin
@colin
thank you for replying,
I accidentally asked the question before I finished it, and I can't remove it or update it.
So I will ask the question in another thread.