Bonjours à tous.
Je viens de mettre à jour jQuery sur mon site et j'ai un petit problème avec ce code
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 // liens externes $('a[href^="http:"]') .not('[href^="http://www.monsite.fr"])') .not('[href^="http://monsite.fr"])') .not('[href^="http://dev.monsite.fr"])') .addClass("external").attr({ target: "_blank" });uncaught exception: Syntax error, unrecognized expression: [href^="http://www.monsite.fr"])
Je ne vois rien dans la doc :
http://docs.jquery.com/Selectors/not
http://docs.jquery.com/Selectors/attributeStartsWith
Merci pour votre aide![]()
Partager