Hi folks,
I'm trying to pass a parameter to my ajax page, but not having much luck.
Any help much appreciated, I just cannot seemto pass the ID.Code:// 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>'); $.fancybox({ content: fancyContent }); // get event id from link clicked var getid = $('.approve').attr('id'); // my alert here displays the id fine alert(getid); // 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? alert(getid);



Reply With Quote


Bookmarks