Holla Tech - Learn

Removing Attributes
 

You can also remove attributes from HTML elements.
The removeAttr() method is used for removing any attribute of an element.
In the example below we remove the border and class attributes of the table: 

$(“table”).removeAttr(“border”);
$(“table”).removeAttr(“class”); 

 


BACK NEXT

CLICK ON THE BUTTON BELOW TO GO TO THE jQUERY MAIN COURSE PAGE. 

jQUERY MAIN COURSE PAGE

 


© License: All Rights Reserved 


CONTACT HOLLA TECH – LEARN SUPPORT