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('<img src="" height="16" width="16"><font color="Green">' + email + ' is OK</font>');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. |
Re: [jQuery] how to apply a class to a using $('#id').html()
- [jQuery] how to apply a class to a <div> using $('#id').htm... Tristan
- [jQuery] Re: how to apply a class to a <div> using $('... MorningZ
- Re: [jQuery] how to apply a class to a <div> using $('... HS8KIC
-
Reply via email to
- [jQuery] how to apply a class to a <div> using $('#id').htm... Tristan
- [jQuery] Re: how to apply a class to a <div> using $('... MorningZ
- Re: [jQuery] how to apply a class to a <div> using $('... HS8KIC