0

Not really sure if this is possible but I figured I would shot it out to the community. I have function that is setup using .on and a .promise() to handle a small non-event based function:

$(document).on('click','a',function(){
   -- click code --
}).promise().done(function(){
   -- Non-Event based function --
});

When anchors are added using ajax they receive click event but the promise function is not preformed. Any Thought?

4

0 回答 0