parseSelector: get id and class