set attrib by class.