skip to Main Content

How to request certain api in another html page when clicked on a certain button in current page – Jquery ajax

I am beginner in javascript. I have a GET api for Customer lists. I am consuming it in jquery and displaying customer list in html table. $('document').ready(function(){ $.get('http://127.0.0.1:8000/api/customers',function(result){ $.each(result, function(data, value){ $('.custtable').append( '<tr>'+ '<td><a id="'+value.id+'" class="btn btn-sm btn-info" href="">View</a></td>' +…

VIEW QUESTION
Back To Top
Search