bsr
bsr

Reputation: 58712

YUI attach event to dynamic content

I Jquery, one can attach/register an event for dynamic content( which loaded later, through ajax) through live() method. Is there anything similar in YUI

thanks.

Upvotes: 1

Views: 319

Answers (1)

Luke
Luke

Reputation: 2581

Yes. live() is basically one approach for event delegation. YUI has the delegate method for this purpose: http://developer.yahoo.com/yui/3/event/#delegate

Upvotes: 2

Related Questions