I would like to add a rel to all links that contain a youtube link. This is what I am working with - but it's not working. Any ideas?
$('a[href:contains("youtube.com")]').attr('rel', 'prettyPhoto');
I found a couple of other questions but not exactly like my request. This was the closest Select <a> which href ends with some string and posted my question there - but not sure if anyone would see it as it gets posted as an 'answer' not a question.