if(tuoElementoJQuery.hasClass('osx')){
...
}

oppure



if(tuoElementoJQuery.is('.osx')){
...
}

ciao