[jQuery] livequery strange behaviour
Hello all:
I've recently discovered livequery plugin, but I can't make it work. I
explain:
I have the next code:
$(document).ready(function (){
alert ("executing jquery");
$("div[@roundedCorners]").livequery(function(){
alert("hey, one div wanna be rounded!");
${this}.rounded();
});
});
...and it doesn't work. Neither the first alert nor the second one is
invoked. But if I drop the line:
${this}.rounded();
...the two alerts go fine. I thought that the problem was in the
corners plugin, but it works well without livequery. The most curious
is that if I try to do something like:
${this}.addClass("myClass");
..into the livequery function, it doesn't work. I've tried as well
with:
$("div[@roundedCorners]").rounded();
and:
$("div[@roundedCorners]").addClass("myClass");
and the result is that the alerts don't work. Ani idea?
Thanks in advance:
Carlos.