EDITABLE CODE:
LiveDemo:jQuery - Searching an Array
Note:If no match is found, it returns -1, like other utility methods