Hi again!
First of all, after "testing" a while I have to say, stackoverflow is really really cool!
To my question: I want to check if $(this) has not any parents that have a class or id specified in an js-array.
By now I did this with "eval", but Andy E. just convinced me, that it is better to abandon "eval". However I have no clue how to do it in this case.
Here is pretty much of what I did:
var testthis = '!(($(this).parents("'+<MY_ARRAY>.join('").length > 0 || $(this).parents("')+'").length > 0)';
if (eval(testthis)) {
....
}
If anybody is kind enough to answer my question, I have to appologize that I cannot read (and comment or rate) his/her answer in the next few hours. Sorry!