[jQuery] checking created items again via DOM

2007-03-08 Thread phplord
Hi; I got an interesting problem. I have a code like this: $('.lin').click(function(){ $(#sublevels).append(span class='lin'+split[1]+/spanbr /); } As you see,I have been adding span tags with class lin when another span tag with class lin was clicked. Problem is created span tags

Re: [jQuery] checking created items again via DOM

2007-03-08 Thread Weaver, Scott
:[EMAIL PROTECTED] On Behalf Of phplord Sent: Thursday, March 08, 2007 12:36 PM To: discuss@jquery.com Subject: [jQuery] checking created items again via DOM Hi; I got an interesting problem. I have a code like this: $('.lin').click(function(){ $(#sublevels).append(span

Re: [jQuery] checking created items again via DOM

2007-03-08 Thread Francesco Sullo
Hi, you could try the following: linClick = function () { $('.lin').unbind('click').click( function(){ $(#sublevels).append(span class='lin'+split[1]+/spanbr/) linClick() } ) } linClick() --Francesco phplord ha scritto: Hi; I got an