";var newarr = [];responsedata += "
";for (let i = 0; i < arr.length; i++) {console.log("here is the array data");newarr.push(arr[i]);if(i == 8){break;}responsedata += "
"+arr[i].title+"
";} //if($('#response').length){}//else{if(arr.length > 0){if($('#response').length){$('#response').remove();}$( "#ajaxloaderclose" ).click(function() {console.log("reaching to close button");$("#response").remove();$('#search_field').val('');$(this).remove();});if(newarr.length == arr.length){}else{responsedata += "
";}responsedata += "
";responsedata += "
";var sold = false;var sold_onhold = false;var sold_show = false;if(arr[0].issold){var sold = true;arr[0].link = "#";}if(arr[0].sold_onhold){sold_onhold = true;}if(arr[0].sold_show){sold_show = true;}responsedata1 += "";responsedata1 += "";responsedata1 += "";responsedata1 += "
";responsedata1 += "
";responsedata1 += ""+arr[0].title+"
";responsedata1 += "";responsedata1 += "
INVENTORY NO."+arr[0].inventory+"
";if(!sold){responsedata1 += "
$"+arr[0].price+"
";}responsedata1 += "
"+arr[0].description.substring(0,60)+"...
";if(sold){if(sold_onhold){responsedata1 += "
On Hold
";}if(sold_show){responsedata1 += "
Sold
";}}else{responsedata1 +="VIEW PRODUCT";}responsedata1 += "
";responsedata1 += "
";responsedatahover += "
";responsedatahover += ""+newarr[index].title+"
";responsedatahover += "";responsedatahover += "
INVENTORY NO."+newarr[index].inventory+"
";if(!sold){responsedatahover += "
$"+newarr[index].price+"
";}responsedatahover += "
"+newarr[index].description.substring(0,60)+"...
";if(sold){if(sold_onhold){responsedatahover += "
On Hold
";}if(sold_show){responsedatahover += "
Sold
";}}else{responsedatahover +="VIEW PRODUCT";}responsedatahover += "