agent2026 schrieb: > Works great, thanks for the help. > > One question: what's happening with .test()? The filter function returns > the value from test() even though test() isn't defined? I'd like to read up > on this, but don't really know what to look for in the docs. > test() is a method of the regular expression:
/thissite.net|othersites.org|moresites/.test(this.href); It basically says: Take the regular expression, defined by two slashes, and test it against the string passed as an argument. It returns a boolean true, when the string matches the regular expression. -- Jörn Zaefferer http://bassistance.de _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
