Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

inarray javascript

var arr = [ 4, "Pete", 8, "John" ];
jQuery.inArray( "John", arr ); // return index of item
 
PREVIOUS NEXT
Tagged: #inarray #javascript
ADD COMMENT
Topic
Name
7+7 =