get the first item of arry in javascript code example Example: javascript get first element of array alert($(ary).first());