$.inArray

1
2
var index = $.inArray(3,[1,2,3,4,5]);
console.log(index)