[jQuery] Re: createElement, get its value

2009-01-14 Thread CrustyDOD
lf Of jQuery Lover > > > Sent: Wednesday, January 14, 2009 8:27 AM > > > To: jquery-en@googlegroups.com > > > Subject: [jQuery] Re: createElement, get its value > > > > OFFTTOP: > > > > The live() function will reduce so much questions on this mailin

[jQuery] Re: createElement, get its value

2009-01-14 Thread CrustyDOD
er before knowing the answer... :o) > > > -Original Message- > > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > > Behalf Of jQuery Lover > > Sent: Wednesday, January 14, 2009 8:27 AM > > To: jquery-en@googlegroups.com > > Subj

[jQuery] Re: createElement, get its value

2009-01-14 Thread Rick Faircloth
7 AM > To: jquery-en@googlegroups.com > Subject: [jQuery] Re: createElement, get its value > > > OFFTTOP: > > The live() function will reduce so much questions on this mailing list :) > > > Read jQuery HowTo Resource - http://jquery-howto.blogspot.com > &g

[jQuery] Re: createElement, get its value

2009-01-14 Thread jQuery Lover
OFFTTOP: The live() function will reduce so much questions on this mailing list :) Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Wed, Jan 14, 2009 at 6:52 AM, Kean wrote: > > using jQuery 1.3 > > This will most probably work. > > $('#grabMe').live('click', function(

[jQuery] Re: createElement, get its value

2009-01-14 Thread CrustyDOD
Thank for the link! On Jan 14, 2:41 am, Kean wrote: > Hmmm, you must understand event listener(bind) does not work like CSS > where DOM nodes added in the future cannot be listened right now. > That's where event delegation comes it. > > http://www.learningjquery.com/2008/03/working-with-events-

[jQuery] Re: createElement, get its value

2009-01-13 Thread Kean
using jQuery 1.3 This will most probably work. $('#grabMe').live('click', function() { alert($(this).html()); }); On Jan 13, 5:41 pm, Kean wrote: > Hmmm, you must understand event listener(bind) does not work like CSS > where DOM nodes added in the future cannot be listened right now. > Th

[jQuery] Re: createElement, get its value

2009-01-13 Thread Kean
Hmmm, you must understand event listener(bind) does not work like CSS where DOM nodes added in the future cannot be listened right now. That's where event delegation comes it. http://www.learningjquery.com/2008/03/working-with-events-part-1 On Jan 13, 4:58 pm, sam wrote: > $('#grabMe') will s

[jQuery] Re: createElement, get its value

2009-01-13 Thread sam
$('#grabMe') will search the document for an element with ID "grabMe" Have you added grabMe to the document? On Jan 13, 6:00 pm, CrustyDOD wrote: > Hey! > > I've created one div with FlyDOM plugin which uses createElement > function to add stuff to DOM. Now the problem is that once i add the >