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