set class text element