Change Css Property Javascript Array Find Element Index