ajax = jquery = format
$.ajax({ url: SERVER_WEB_ROOT + "/application/controllers/HEADER_SEARCH/SERVER_SEARCH.php", data: { text : text //page:track_page, }, type: "POST", //type: "GET", statusCode: { 403: function (xhr) { //alert("403 Forbiden Error"); //console.log('403 response'); } }, cache: false, //<------ 【me】 Jquery: How to clear an element before appending new content? = https://stackoverflow.com/questions/13822322/jquery-how-to-clear-an-element-before-appending-new-content beforeSend: function(){ }, success: function(data){ }, complete: function(data){ }, error:function