Get Html Element Attribute Value Javascript Array Push At Index