jquery add attribute to multiple elements code example
Example: jquery add multiple attribute to element by class
$(myObj).attr({"data-test-1": num1, "data-test-2": num2});
$(myObj).attr({"data-test-1": num1, "data-test-2": num2});