[jQuery] Re: how to apply a class to a using $('#id').html()

2009-11-22 Thread Tristan
Thanks guys, worked perfectly !

[jQuery] Re: how to apply a class to a using $('#id').html()

2009-11-22 Thread MorningZ
Assuming it's $("#status").addClass("avail").html("" + email + " is OK"); On Nov 22, 9:06 am, Tristan wrote: > Hello, i have in my script something like that > > $('#status').html(' width="16">' + email + ' is OK'); > > instead of that i want to apply on my div status the class called > 'avail'