1
У меня есть этот код в jQuery, который я хочу переопределить библиотекой прототипов.Как я могу переопределить внешний всплывающий код jQuery в Prototype?
// make external links open in popups
// this will apply a window.open() behaviour to all anchor links
// the not() functions filter iteratively filter out http://www.foo.com
// and http://foo.com so they don't trigger off the pop-ups
jQuery("a[href='http://']").
not("a[href^='http://www.foo.com']").
not("a[href^='http://foo.com']").
addClass('external');
jQuery("a.external").
not('a[rel="lightbox"]').click(function() {
window.open(jQuery(this).attr('href'));
return false;
});
Как можно итеративно отфильтровать коллекцию элементов с помощью эквивалентной к не() операторы, перечисленные здесь в JQuery?