Hi folks,

I'm trying to pass a parameter to my ajax page, but not having much luck.


// here is my fancybox script which the eventid shows fine.

    var fancyContent = ('<div class="header">approve booking for event id'  + eventid + '<a href="#" class="approve" id="' + eventid + '">yes</a><a href="#" class="approve">no</a></div>');
        content: fancyContent

// get event id from link clicked

var getid = $('.approve').attr('id');

// my alert here displays the id fine


// I then begin my click function passing the getid as a parameter

$('.approve').click(function(calEvent, jsEvent, view, getid){

// my alert here is ALWAYS undefined, any ideas?

Any help much appreciated, I just cannot seemto pass the ID.