attr() method in jQuery can be used to set a new attribute value of an element.
attribute: This is the name of the attribute whose value has to be changed.
newValue: This is the value to be set.
$("a"), to select the anchor element. We use the
attr()function to set a new value to the
View all Courses