how do i refer to the subject $(this) from a jquery plugin?

Posted by Haroldo on Stack Overflow See other posts from Stack Overflow or by Haroldo
Published on 2010-04-12T12:07:35Z Indexed on 2010/04/12 12:13 UTC
Read the original article Hit count: 133

Filed under:
|

I'm using colorbox, i just get undefined as my get values?

$('.banner').colorbox({
    opacity: 0.4,
    href: 'dialogs/ban_add_edit.php?banner_to_edit='+$(this).attr('id')+'&typeofbanner='+$(this).attr('rel')            
    })

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript