How can I select all buttons which id starts with "aaa" that have a class which name is class_name1?
Summary:
- select all element which
idstart with "aaa" - inside this group select all button which have a
classcalledclass_name1 - remove this
classand add a newclassclass_name2.
The last step should be:
$('#id').removeClass("class_name1").addClass("class_name2");