jQuery exclude exteranl link for images
$('a:not([href^="http://your-website.com"]):not([href^="#"]):not([href^="/"])').addClass('external');
Are there any code examples left?
New code examples in category Javascript
$('a:not([href^="http://your-website.com"]):not([href^="#"]):not([href^="/"])').addClass('external');