SyntaxFix
Write A Post
Hire A Developer
Questions
You code is ok only except that you can't add same class test1.
test1
$('.page-address-edit').addClass('test1').addClass('test2'); //this will add test1 and test2
And you could also do
$('.page-address-edit').addClass('test1 test2');