var suggest =[]; $.ajax({ type: "POST", url: //LINK, async: false, data: { "dataA": string }, cache: false, success: function(data) { suggest = JSON.parse(data); } });
for (var i = suggest.length - 1; i >= 0; i--) { for (var j = 0; j < arrString.length; j++) { if (suggest[i] === arrString[j]) { suggest.splice(i, 1); } } }
$.ajax({ type: "POST", url: //LINK, async: false, data: { "dataA": string }, cache: false, success: process }); function procees(jsondata) { … }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)