Jump to: navigation, search

JQuery Array Create

From w3cyberlearnings

Contents

jQuery Create Array

Create Array in jQuery is the same as in javaScript.

Syntax

var myList =[1,5,6,23,53];

Example 1

$(document).ready(function() {
	var myList =[1,5,6,23,53];
	alert(myList[0]);
});

Output

1

Example 2

	
$(document).ready(function() {
	var myList2 =['girl','boy','fist'];
	alert(myList2[0]);
});

Output

girl

Related Links


Navigation
Web
SQL
MISC
References