I would like to change all the names of the attributes where class=\"testingCase\" throughout all my whole html document.
e.g. Change:
&
I don't think you can change an attribute name but what you can do is :
tags with a title attribute;JQuery let you do that with builtin functions this way :
/* get all with a "title" attribute that are testingCase
then apply an anonymous function on each of them */
$('a.testingCase[title]').each(function() {
/* create a jquery object from the DOM object */
var $a_with_title = $(this);
/* add the new attribute with the title value */
$a_with_title.attr("newTitleName", $a_with_title.getAttribute('title'));
/* remove the old attribute */
$a_with_title.removeAttr('title');
});