[jQuery] value of onclick-attribut after setting via JQuery?

[jQuery] value of onclick-attribut after setting via JQuery?


hello,
have a simple question:
i am using JQuery to go through my html-site and setting a "onclick"
attribut to all links. it is a very big site and cause of using css
seperators it may occur that i dont get all the links.
so i´d like to look on every link if it has got already the onclick-attribut
i set before (but also via jquery).
currently i get a undefined-alert if i have this function:
[code]$('a').click(function() {
            var title = $(this).attr("onclick");
            alert(title);
        });
[/code]
before this code above i have something like this:
[code]
$('#SideBar a').click(function() {
            var ct_param = "test";
            wt_sendinfo (ct_param, 'link');
        });
[/code]
--
View this message in context: http://www.nabble.com/value-of-onclick-attribut-after-setting-via-JQuery--tp18627879s27240p18627879.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.