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
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
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,
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
4 matches
Mail list logo