You can use something like `_element.classes.toggle('selected', selected);`