and you can test if it contains a class with jQuery like so: if($('#myelement').hasClass('myclass')) { ... do something ... } else { ..
確定! 回上一頁