[jQuery] changeClass and more

[jQuery] changeClass and more

Hi,
is there something like changeClass(string)? Right now im using this:
$('#tabhead' + intCounter).removeClass('tabNotSelected');
$('#tabhead' + intCounter).addClass('tabSelectedImportent');
There seems to be a toggleClass in the 1.0a version, but this isn't
allways what you want...
And, how would I do something like this:
if(!document.getElementById(strFieldName))
...
This isn't working:
if(!$('#' + strFieldName))
because it gets an object back...
Michael
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/