[javascript] Get an array of list element contents in jQuery