Parsing JSON data
Now that we are familiar with jQuery, let us trigger an AJAX request on an event such as a button click:
<!--jquery-ajax.html--> <!DOCTYPE html> <html> <head> <title>Ajax using jquery</title> <!-- Go to https://code.jquery.com/ for more details --> <script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script> <script> $(document).ready(() => { $('#getFeed').click(()=>{ $.getJSON('http://localhost:3300/',(jsonData)=>{ if(jsonData){ $.each(jsonData, (key, value)=>{ $('#feedContainerList') .append(`<li>Student Id is ${value.studentid} and the student name is ${value.firstname} and ${value.lastname} <...