Jquery: How to Add a Class and ID

Rating: 3

In jquery you can add a class with .addClass(<class>) and an ID with .attr("id", <id>).