How to attach events to elements from Facebox html

119 views
Skip to first unread message

Gautam Naroji

unread,
Jan 28, 2012, 4:04:04 PM1/28/12
to facebox
Hello,

I have an issue at my hand. The way Facebox works is it replicates the
html from any div, the id of which is set as href of the link from
which Facebox is triggered. How can i add jQuery events on the
replicated html elements, which reside in the popup shown to the user.
I need the html bound to events like .onkeyup etc, to show count of
characters entered in a textfield, to the user. The code for keyup
event is working fine with other elements which are outside of
Facebox.

It would be great if someone can help me here. Thank You.

Gautam Naroji

unread,
Jan 28, 2012, 5:40:13 PM1/28/12
to facebox
I fixed the issue. Used Delegation :)

Rafael Guimaraes

unread,
Aug 17, 2012, 12:54:52 PM8/17/12
to fac...@googlegroups.com
did u fix this problem?

Dennis Notebaart

unread,
Apr 26, 2013, 6:44:48 AM4/26/13
to fac...@googlegroups.com
@Guatam: I'm experiencing the same problem, can you explain how you fixed this and what you mean with 'Delegation'?
Reply all
Reply to author
Forward
0 new messages