Thanks! I had to change .children to .find, but then it worked great :) Doug
On Jul 28, 1:51 pm, "Benjamin Sterling" <[EMAIL PROTECTED]> wrote: > Doug, > This should work, but untested: > > if($("div#sidebar2").children(".plugin").size() != 0{ > > $("div#sidebar2").css('width',160); > $("div#content")css('marginRight', 170); > > } > > On 7/28/07, duggoff <[EMAIL PROTECTED]> wrote: > > > > > > > How would I turn this pseudocode into jquery? > > > if div#sidebar2 contains div.plugin { > > div#sidebar2 width = 160px > > div#content margin-right = 170px > > } > > > I've been at this for a couple hours and I can't figure it out, so any > > help is really appreciated. > > > Thanks, > > > Doug > > -- > Benjamin Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.com