Answer the question
In order to leave comments, you need to log in
Why doesn't this code work in Safari?
For some reason, this code does not work in Safari, although everything works in Mozilla and Chrome.
$(document).ready(function(){ //1
$("#search").on("keyup", function() { //2
var value = $(this).val().toLowerCase(); //3
$("#select option").filter(function() { //4
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1); //5
});
});
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question