Or, if you know that you'll be using just text (no html tags), you could do this:

$("#scrollStats").text("someting");


--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Jan 30, 2008, at 11:11 AM, Bhaarat Sharma wrote:


*dope*

$("#scrollStats").html("someting");

that works.

...should visit the api's more often...

On Jan 30, 10:55 am, Bhaarat Sharma <[EMAIL PROTECTED]> wrote:
Hi

Can someone please tell me how i can change the text between span tags
on the fly using jQuery

I have tag like this

<span id="scrollStats" style="font-size: 70%; width: 80px;  text-
align: center; position: absolute; bottom: 392px; left: 15px;"></ span>

i have tried these but none seem to work

$("#scrollStats").val("im here!!");

$("#scrollStats").setText("works?");

Thanks!

Reply via email to