I think you want

var myHeight = $(this).attr("height"); // attr is method of jQuery object.
Wrap this first

- Richard

On Nov 3, 2007 8:26 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:

>
> 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.
>
>

Reply via email to