Let's Highlight In Red Every Element With The CSS Class ".external" Using jQuery


Sample Text...

Taken from Wikipedia. Use the above form to select the elements here with CSS selectors. The selected elements will have a red border. View the source to see the HTML behind this.

Using Jquery:

<script type='text/javascript' src='http://code.jquery.com/jquery-1.4.2.js'></script>
<script>
    $(document).ready(function() {
        $(".external").css("border", "solid 5px red");
    });
</script>