I'm new to Drupal and have been looking for a way (function or template method) to add a custom class(html attribute) to ALL anchor elements of the drupal site. I want to manipulate the anchors with jquery and need to be able to remove this class later on.
Thanks
If it's all anchor elements you want to class and you're using jQuery, is it feasible to do it purely within JavaScript at DOM-ready time?
$(document).ready( function() {
$("a").addClass('myClass');
} );
Or even just
$(document).ready( function() {
$("a").doWhatever();
} );
without applying the class?