sumitgroup
3 months ago
425
4
Laravel

How to remove previous search result from Search Bar in laravel 6?

Posted 3 months ago by sumitgroup

When i am search new product in my search bar, it's showing already searches product, due to this i am unable to search the exact product. Please let me know how i can remove previous searches data from my search form.

here are my code...

  <div class="form-group looking">
        <div class="first-select wide">
          <div class="main-search-input-item">
            <input type="text" name="title" placeholder="What are you looking for?" style="padding:13px; width: 343px;border: none;" id="search_field" onkeyup="getSearchResult(this.value)">
            <input type="hidden" name="locationId" >
            <input type="hidden" name="sCityId" >
            <input type="hidden" name="sPropId" >
            <input type="hidden" name="sTitle" >
            <input type="hidden" name="suggestion" value="0">
            <div class="dropdwonlist">  
              <ul class="list-group" id="suggetResult">               
              </ul>
            </div> 
          </div>
        </div>
      </div>

Please sign in or create an account to participate in this conversation.