SyntaxFix
Write A Post
Hire A Developer
Questions
Here's a version that uses jQuery's inArray function:
var index = $.inArray(item, array); if (index != -1) { array.splice(index, 1); }