Using jQuery what is the best way to call a URL Via ajax and update a <ul> list with the data that is returned? While the data is being fetched from the url, I would also like to show a “loading” spinner.
the URL is local to my application and will return back a json response. When the checkbox is checkmarked, I’d like to call the URL and pass a parameter. e.g. /return/students?q=someparm
Should be possible with change event
The code could look somehow like this: