Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. var minlength = 3;
  2.  
  3. $("#searchbrands").keyup(function () {
  4. var that = this,
  5. value = $(this).val();
  6.  
  7. if (value.length >= minlength ) {
  8. if (searchRequest != null)
  9. searchRequest.abort();
  10. searchRequest = $.ajax({
  11.  
  12. });
  13. }
  14. });
  15.  
  16. @if(!empty($brands))
  17.  
  18. @foreach($brands as $id => $brand)
  19. <a class="fontsizs text-uppercase" id="product_brand" onclick="brandfilter({{ $id }});" href="javascript:void(0)" >{{$brand}}</a>
  20.  
  21. @endforeach
  22. @endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement