Is it possible to get some created tags with jquery
For example :
$(function() {
$('a').click(function() {
var a = this.a;
var b = this.b;
var c = this.c;
$('.info').html("a:" + a + "b:" + b + "c:" + c);
});
});
<a href="#" a="txt" b="text" c="get">Info</a>
With this code I get:
a: undefined b: undefined c: undefined
1 Answer