jQuery Find Index of Array Item

By Sam Deering

Simple jQuery code snippet to find the index of an array item given the item value. It’s a bit like the .NET Array.FindIndex Method but use the in Array function.

jQuery.inArray( value, array )

jQuery.inArray("Sam", array)
  • lefrancotterevolver

    concealed handguns and catholic social teachings how long does weapons disability last cost of remington 700 sps rifle handguns for sale llama pistol magazines westpoint model 50 22 caliber rifle american flag pocket knife with engraving reviews for rifle flighted 6.0 shafts

Because We Like You
Free Ebooks!

Grab SitePoint's top 10 web dev and design ebooks, completely free!

Get the latest in JavaScript, once a week, for free.