Mark selected tags with a special class "selected"