[jQuery] Re: Best Practices or unobtrusive Javascript

2009-11-30 Thread breadwild
Thanks, I did not know that. On Nov 30, 1:09 am, Rafał Pocztarski wrote: > 2009/11/30 breadwild : > > > I have seen several examples on jQuery plugin sites that have the > >

[jQuery] Re: Best Practices or unobtrusive Javascript

2009-11-30 Thread breadwild
*might* be a > reasonable time to embed JS code directly.  Though I tend to use > $.ajax() and so can just call a function after adding the elements. > Which means I can pre-write that function in a library, with no JS > needed in the body area. > > Clear as mud?  :) > > Shawn

[jQuery] Best Practices or unobtrusive Javascript

2009-11-29 Thread breadwild
I have seen several examples on jQuery plugin sites that have the tag and Javascript within the and not the where I thought it was supposed to go. It would be better for my content manager and the templating system if the Javascript *were* in the but I don't want to be guilty

[jQuery] Re: How to select some but not all elements

2009-10-25 Thread breadwild
t;background-color",colors[i]); }); On Oct 25, 5:20 pm, Leonardo K wrote: > $('#menu li.top > a').css('background-color', 'tan'); > > The selector is just like CSS. > > On Sun, Oct 25, 2009 at 10:25, breadwild wrote: > > > Hello, > &g

[jQuery] How to select some but not all elements

2009-10-25 Thread breadwild
grab everything. Anyway, I have tried: .is, .content, .filter, and some parent, child stuff, but can't seem to only apply the effect to the "top" class—it just selects everything. Thoughts? Fundamental concepts welcome. Thanks in advance. —breadwild HTML: Menu Item 1 Menu It