addClass - can add multiple classes on same div?
jQuery add multiple class
This is my current code, I know its wrong code
$('.page-address-edit').addClass('test1').addClass('test2');
Solution 1:
$('.page-address-edit').addClass('test1 test2 test3');
Ref- jQuery
Solution 2:
You can do
$('.page-address-edit').addClass('test1 test2');
More here:
More than one class may be added at a time, separated by a space, to the set of matched elements, like so:
$("p").addClass("myClass yourClass");