Commit 7e24efac authored by Daniel Witek's avatar Daniel Witek

cleared list before request

parent d5849b41
......@@ -33,10 +33,13 @@ function search(e) {
e.preventDefault();
const searchValue = document.getElementById('input').value
console.log(searchValue);
clearList();
sendNameQuery(searchValue);
}
function clearList() {
document.getElementById("results").innerHTML = ""
}
// $('searchForm').submit(function(){
//
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment