[jQuery] Accessing height attribute in <a>
Hi,
I'd like to retrieve the value of Height attribute in the following
code(taken from Thickbox):
function tb_init(domChunk){
$(domChunk).click(function(){
var t = this.title || this.name || null;
var a = this.href || this.alt;
var g = this.rel || false;
var myHeight = this.attr("height"); // this line does not work at
all, will abort thickbox as well
tb_show(t,a,g);
this.blur();
return false;
});
}
the element at this point is something like :
<a class="thickbox" height="100" href="/myapp/myphoto.delete/3096?
t:ac=262" id="Delete">Delete</a>
why I can't access the height? I can see that attribute in the
Firebug.
Thanks,
A.C.