I have an array with some values. How can I search that array using jquery for a value which is matched or close to it?
var a = [\"foo\",\"fool\",\"cool\",\"
try $.inArray http://api.jquery.com/jQuery.inArray/. I'm not sure if it will allow you to use a regular expression but its worth a try
$.inArray