Skip to content
Loading
  • Manas Mohapatra
    +1
    It's simple, have a look:
    1. >  
    2. <html>  
    3. <head>  
    4. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js">script>  
    5. <script>  
    6. $(document).ready(function(){  
    7.     $("a[href$='.org']").css("background-color", "yellow");});  
    8. script>  
    9. head>  
    10. <body>  
    11.   
    12. <a href="https://www.w3schools.com">w3schools.coma><br>  
    13. <a href="http://www.google.com">Google.coma><br>  
    14. <a href="http://www.wikipedia.org">wikipedia.orga>  
    15.   
    16. body>  
    17. html>  
     https://www.w3schools.com/jquery/jquery_ref_selectors.asp
    +1