Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

inarray jquery

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