I\'m trying to do a jquery GET and i want to send a parameter.
here\'s my function:
$(function() { var availableProductNames; $.get(\"manag
This is what worked for me:
$.get({ method: 'GET', url: 'api.php', headers: { 'Content-Type': 'application/json', }, // query parameters go under "data" as an Object data: { client: 'mikescafe' } });
will make a REST/AJAX call - > GET http://localhost:3000/api.php?client=mikescafe
REST/AJAX call - > GET http://localhost:3000/api.php?client=mikescafe
Good Luck.