get array first element jquery code example Example: how to display first value of an array in jquery alert(ary[0]);