I have a site with mutliple forms, and I would like to, for a specific form, loop through and manipulate the classes on divs and inputs. I can get the form id with -
var thisForm = $(el).closest('form');
var myId = thisForm[0].id
But then I am not sure how to loop through specific classes.
Example:
for each input with "class1" I want to change it to "class2"
and
for each div with "class3" I want to add "class4"
Any help would be greatly appreciated.