[jQuery] Re: addClass with attrs

2008-12-07 Thread QuadCom
addClass is exactly what it says, it adds a class. Predefine the class in your CSS pages with the attributes you require and use the addClass function to add it to your target..addClass('newclass'); You can also use removeClass to remove the class .removeClass('newclass'); If you want to define

[jQuery] Re: addClass with attrs

2008-12-07 Thread Dirceu Barquette
Thank you!!! I know this. But my question was how to create newclass assigning its attrs at the same time. 2008/12/7 QuadCom [EMAIL PROTECTED] addClass is exactly what it says, it adds a class. Predefine the class in your CSS pages with the attributes you require and use the addClass

[jQuery] Re: addClass with attrs

2008-12-06 Thread Karl Rudd
Try this plugin: http://plugins.jquery.com/project/Rule Karl Rudd On Sun, Dec 7, 2008 at 9:50 AM, Dirceu Barquette [EMAIL PROTECTED] wrote: Hi! How can I add a class with its attrs dynamically? like this (not works, obvious ...)--- $('#div').addClass('blah {background:#000}') Thanks,

[jQuery] Re: addClass with attrs

2008-12-06 Thread Dirceu Barquette
Very good!!! I think is perfect to my application!! Thank you! Dirceu Barquette 2008/12/6 Karl Rudd [EMAIL PROTECTED] Try this plugin: http://plugins.jquery.com/project/Rule Karl Rudd On Sun, Dec 7, 2008 at 9:50 AM, Dirceu Barquette [EMAIL PROTECTED] wrote: Hi! How can I add a