Jquery Filter Array

Filter Array Script, allows you to search from the groups of elements by entering a string.


  • Helps to search a string in a fraction of seconds.
  • Returns the elements of an array which matches with the searched string.
  • Responsive and simple to integrate into your webpage.


Filter Array

Array Value: (Separated by Comma) Search String:


<script type='text/javascript'>
<!--Scripts by hscripts.com-->
<!--More scripts @ www.hscripts.com-->

function filter_array(search_str,filter_arr) {
var grep_arr = $.grep(filter_arr, function(value, i) {
return ( value.search(search_str)>=0 );

return grep_arr;



  • Release Date - 23-06-2015
  • Get free version without ©copyright link for just $10/-
  • For customization of this script or any script development, mail to support@hscripts.com


  • Copy and paste the code in your <head> tag and save it in .html extension.
  • Call the following function and pass it in the parameters inside your script tag.
    search_str : String Search in mention array
    filter_arr : array name
  • Now, run the file in your browser.


  • This Jquery code is given under GPL License
  • i.e. Free use for those who use the codes as it is.
  • Free, if your modification does not remove our copyright information and links.
  • Detailed License information can be found here.
  • You can purchase the script if your requirements does not meet our GPL License terms.

Related Scripts

Jquery Download

Ask Questions

Ask Question