Edit This Code:
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $("a[hreflang|='en']").css("background-color", "yellow");});
</script>
</head>
<body>

<a href="http://w3schools.com" hreflang="en">w3schools.com</a><br>
<a href="http://w3schools.com" hreflang="en-us">w3schools.com</a><br>
<a href="http://w3schools.com" hreflang="us-en">w3schools.com</a><br>
<a href="http://w3schools.com" hreflang="fr">w3schools.com</a>

<p>This selector selects both "en" and "en-us".</p>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy