[jQuery] Re: changing content for span tag on the fly

2008-01-30 Thread Dave Stewart
$("#scrollStats").html('bold'); $("#scrollStats").text('text');

[jQuery] Re: changing content for span tag on the fly

2008-01-30 Thread Karl Swedberg
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("

[jQuery] Re: changing content for span tag on the fly

2008-01-30 Thread Bhaarat Sharma
oh haha thanks. we replied at the same time :) On Jan 30, 11:11 am, Bhaarat Sharma <[EMAIL PROTECTED]> 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 >

[jQuery] Re: changing content for span tag on the fly

2008-01-30 Thread Bhaarat Sharma
*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 > >

[jQuery] Re: changing content for span tag on the fly

2008-01-30 Thread Liam Byrne
Try $("#scrollStats").html("im here!!"); Bhaarat Sharma 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 i have tried these but none seem to work $("#scrollStats").val("im here!!"); $("#scrollStats").setText("w