Hi to all,

Hi to all,

SpitznameSpitzname Posts: 6Questions: 2Answers: 0

$(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

  • colincolin Posts: 13,196Questions: 0Answers: 2,256

    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

  • SpitznameSpitzname Posts: 6Questions: 2Answers: 0

    @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.

Sign In or Register to comment.