well, I am more of a PHP person, and my JS skills are close to none when it comes to any JS other than simple design related operations , so excuse me if I am asking the obv
To check if an array contains an element, case-insensitive, I used this code:
ret = $.grep( array, function (n,i) { return ( n && n.toLowerCase().indexOf(elem.toLowerCase())!=-1 ); }) ;
Here is a fiddle to play with array match case insensitive