Hi,

I have implemented the following code:

  $(lastElement).after('<button type="button" id="1122">Uninvite</
button>');

$("button").click(function()
  {
        var id = $(this).attr('id');
        console.log("this id " + id);
 }

I see the button being displayed on the page but the problem occurs
when I click the Uninvite button as it is not invoking the click
function. Does anybody know what I am doing wrong or can give me any
pointers to resolve this issue?

Best Regards,

ShuttlesWorth


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to