added className argument to selectBy() and selectByMulti()