I am using the following AJAX call to generate search suggestions:
$(".smart-suggestions").load('id-get-data.php?searchword=' + self.value);
The search suggestions are returned into a ‘div’ based on the user’s input. I was wondering if there is a way to ‘clear’ the data returned from ajax somehow using javascript, jquery or ajax? to erase the results returned.
If you use
loadyou can append the time to “fool” the cache mechanism