Skip to content

Instantly share code, notes, and snippets.

View aldelpech's full-sized avatar

Anne-Laure Delpech aldelpech

View GitHub Profile
@aldelpech
aldelpech / index.html
Last active August 29, 2015 14:27
How to add a specific class to a link (<a>) with an image nested into it ?
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("a:has(img)").css("border", "solid red");
});
</script>
</head>
<body>