Friday, May 29, 2009

[jQuery] jQuery $ alert....

Hi All

I am having the following div tag in body..

<div id="div01"><img src="lions/1.jpg" alt="flower" class="flower"/></div>

and my script as follows...
varX = 2;
varY = 3;
 var txt = '#div' + varX+ varY;
alert($(txt).innerHtml);

this is alerting like div23.innerHtml but this is not alerting the inner html of this div tag...

Help into this..

Thanks
Ramesh

No comments: