It can easy switching class attribute for dom