From 73ebc6b0a7a5e52072e85c9f411e11d6418e6349 Mon Sep 17 00:00:00 2001 From: samiulislam09 Date: Wed, 2 Mar 2022 15:30:29 +0600 Subject: [PATCH] fixed search bar --- js/script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/script.js b/js/script.js index cc9ad8b..489dedf 100644 --- a/js/script.js +++ b/js/script.js @@ -32,11 +32,13 @@ const displayPhone = (data) => { } else { const cards = document.getElementById('cards'); cards.textContent = ""; + document.getElementById('name-input').value = ''; document.getElementById('feature').textContent = ''; const allData = data.data; const firstData = allData.slice(0, 20); if (allData.length > 20) { const showMore = document.getElementById('show-more'); + showMore.textContent = ''; div = document.createElement('div'); div.classList.add('col-12'); div.innerHTML = ``;