[jQuery] Selector help for new user please

[jQuery] Selector help for new user please


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