MacMac MacMac - 1 year ago 88
jQuery Question

First element in array - jQuery

How do you get the first element from an array:

var ary = ['first', 'second', 'third', 'fourth', 'fifth'];

I tried this:


But it would return
[object Object]

So I need to get the first element from the array which should be the element

Answer Source

like this

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download