Hi,
you could try the following:
linClick = function () {
$('.lin').unbind('click').click(
function(){
$("#sublevels").append("<span
class='lin'>"+split[1]+"</span><br/>")
linClick()
}
)
}
linClick()
--Francesco
phplord ha scritto:
Hi;
I got an interesting problem.
I have a code like this:
$('.lin').click(function(){
$("#sublevels").append("<span class='lin'>"+split[1]+"</span><br
/>");
}
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 with class link must run this code also when
they are clicked because they have the same class name (lin)
But they donot work
What's the problem?
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/