Profile
Achievement
1man's Recent SnippetsTagged class
- All /
« Prev 1 Next »
Function to look if an element has a class, if it doesn't simply add it to the element. If it does have a class add it to the class that is already there. Function expects 2 values, the element to add the class to, and the new class name (value).
3
1138
posted 17 years ago by 1man