elem.id (id) to elem.name (class)