use selector not condition for checking