I have had some help on a Jquery script which creates a searchable filter, The code can be seen here:
$('#search-keyword').on( "keyup", function(){ if($(this).val()){ var input = $(this).val(); $(".filter").hide(); $("div[data-destination*='"+ input +"']").show(); if(!$('.filter:visible').get(0)){ $(".filter").show(); } }else{ $(".filter").show(); } }); The trouble is, if there is the word “How” with an upper case “H” and I search “h”, it wont find it. How can I make this script case insensitive?
<div data-destination=...make it lowercase at the point it is generated. Then you only need to convert the input to lower and compare.