Tryit Editor v1.8

Source Code:
<!DOCTYPE html> <html> <head> <script src="../../ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> </script> <script> $(document).ready(function(){ $("a[href$='.org']").css("background-color","yellow");}); </script> </head> <body> <a href="../default.htm">w3schools.com</a><br> <a href="../../www.google.com/default.htm">Google.com</a><br> <a href="../../www.wikipedia.org/default.htm">wikipedia.org</a> </body> </html>
Result:
W3Schools.com - Try it yourself