Re: [jQuery] Re: Remove css attribute from the DOM element

2009-12-07 Thread Richard D. Worth
On Sun, Dec 6, 2009 at 9:19 PM, Joshua Partogi wrote: > On Dec 7, 12:36 pm, "evanbu...@gmail.com" wrote: > > I like to use the addClass method rather than embed CSS in my js > > code. I find it easier to maintain. > > > > $('td').addClass('myCSSClass'); > > > > $('td').removeClass('myCSSClass');

[jQuery] Re: Remove css attribute from the DOM element

2009-12-06 Thread Joshua Partogi
On Dec 7, 12:36 pm, "evanbu...@gmail.com" wrote: > I like to use the addClass method rather than embed CSS in my js > code. I find it easier to maintain. > > $('td').addClass('myCSSClass'); > > $('td').removeClass('myCSSClass'); Hi Evan, I'd prefer that approach too. But the problem is this css

[jQuery] Re: Remove css attribute from the DOM element

2009-12-06 Thread evanbu...@gmail.com
I like to use CSS classes in an external stylesheet and then use the addClass method. I find the maintenance much easier this way. $('td').addClass('myCSSClass'); to remove the CSS Class $('td').removeClass('myCSSClass') On Dec 6, 6:09 pm, Joshua Partogi wrote: > Hi all, > > What is the cl

[jQuery] Re: Remove css attribute from the DOM element

2009-12-06 Thread evanbu...@gmail.com
I like to use the addClass method rather than embed CSS in my js code. I find it easier to maintain. $('td').addClass('myCSSClass'); $('td').removeClass('myCSSClass'); On Dec 6, 6:09 pm, Joshua Partogi wrote: > Hi all, > > What is the cleanest approach to remove a css attribute from the DOM el