javascript - Filter as you type, search for name of Div ID -


any expert out there know if there search jquery plugin allows filter type in search box , search based on name of div id?

also if instant refresh filter best.

very broad question , not sure mean. input meant search div itself? in case, use few lines of jquery search. have included example below.

https://jsfiddle.net/cshanno/m0pchv1j/1/

jquery

$('#search').keyup(function(){     var input = $(this).val();     $('div').each(function(i) {         if (input === $(this).attr('id')) {             $(this).addclass('show');  // run code after find div         } else {             $(this).removeclass('show'); // else whatever         }     }); }); 

Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -