[jQuery] A little help with a 1.0 to 1.1 conversion
Hi all,
Reading up on the new release, I'm interested in the new feature of being
able to pass comma-separated lists of selectors to the .not filter. Can
this be applied to values?
For example, I would like to convert this:
$("a[@href^=http]:not([@href*=thissite.net/]):not([@href*=thatsite.com/]):not([@href*=theothersite.com/]):not(.thickbox)").bind("click",
function(){ return !window.open(this.href); });
to something like this:
$("a[@href^=http]").not("thissite.net/, thatsite.com/, theothersite.com,
.thickbox").bind("click", function(){ return !window.open(this.href); });
or
$("a[@href^=http]").not("[@href*=thissite.net/],[@href*= thatsite.com/],
[@href*=theothersite.com], .thickbox").bind("click", function(){ return
!window.open(this.href); });
I can't get it to work (obviously, or I wouldn't be here), so I'm guessing
it's not possible. Just thought I'd check.
Adam
--
View this message in context: http://www.nabble.com/A-little-help-with-a-1.0-to-1.1-conversion-tf3015403.html#a8373809
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/