Introduction
This page shows you how to add an attribute to a number of elements using JQuery. Below are some sample links to popular web sites. Before applying JQuery update button, links open the in the current window. Apply the JQuery script by clicking on the update button below. After this update a border is added to all the links on the page. In addition, the links should now open in a new window. Notice that even the navigation links have a border added. This is done by using the addClass method to add the .blueBorder class to the links.
Sample Links
Here is the source code for the example.