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

2009-11-22 Thread HS8KIC
Hi. how about this. for example onclick event. $('a').click(function(){ ??? ?? ? $('#status').addClass('avail').html(' ... '); }); Aom. Tristan wrote: Hello, i have in my script something like that $('#status').html('' + email + ' is OK'); instead of that i want to apply on my div sta

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

2009-11-22 Thread Tristan
Hello, i have in my script something like that $('#status').html('' + email + ' is OK'); instead of that i want to apply on my div status the class called 'avail' I know this is simple, but i'm stuck here. Thanks for helping me.