[jQuery] Re: assign event click to dynamic create div (via php)

2008-04-09 Thread franco57
Right I'll try both thanks On 10 Apr, 00:31, Wizzud <[EMAIL PROTECTED]> wrote: > An alternative view of the problem > > If you have a PHP while() loop that outputs multiple anchors with the > same id, this results in invalid HTML. > > For example... > > $i = 0; > while( !empty($fish[$i]) ){

[jQuery] Re: assign event click to dynamic create div (via php)

2008-04-09 Thread Wizzud
An alternative view of the problem If you have a PHP while() loop that outputs multiple anchors with the same id, this results in invalid HTML. For example... &agent=' style='text-decoration:none;'> ...might result in a page (or section thereof) containing a set of anchors such

[jQuery] Re: assign event click to dynamic create div (via php)

2008-04-09 Thread franco57
Thanks I'll try On 9 Apr, 16:39, Karl Swedberg <[EMAIL PROTECTED]> wrote: > You could use the LiveQuery plugin or the Listen plugin (both > athttp://plugins.jquery.com/) > or handle it yourself. One way to handle this is to use event > delegation. See this blog entry for details: > > http://ww

[jQuery] Re: assign event click to dynamic create div (via php)

2008-04-09 Thread Karl Swedberg
You could use the LiveQuery plugin or the Listen plugin (both at http://plugins.jquery.com/) or handle it yourself. One way to handle this is to use event delegation. See this blog entry for details: http://www.learningjquery.com/2008/03/working-with-events-part-1 --Karl _