if i have <a href="#" class="test" arg1="10" arg2="100">test</a>

$("a.test").click(function() {
  arg1 = $(this).attr('arg1');
  arg2 = $(this).attr('arg2');
  // code using args
});

is this acceptable way of using attr or should i avoid this?

Reply via email to