jQuery Example | Remove a DOM Element Attribute

In jQuery, in order to remove a dom element attribute, we can use removeAttr() function. We will use an example to introduce how to do.

For example:

    // Removes the hyperlink's href attribute

In this example, we will remove the href attribute form all <a> elements.