jQuery Tambahkan beberapa atribut ke elemen demi kelas

$(myObj).attr({"data-test-1": num1, "data-test-2": num2});
Ill Impala