Selecting classes that start with 'foo'.

Selecting classes that start with 'foo'.

The following gives me an error:
  1.         $("#main_content div[@class^='std_side_image'] .caption").each(function(){
Warning: Expected attribute name or namespace but found '@class'.
Source File: http://zarathud.org/test/0208test-post-for-my-hack.shtml

Which, now that I think about it, is probably b/c I've mixed CSS-style and XPath-style selectors.

I haven't figured out how to write this as XPath-only. Is there a way to say "all classes starting with 'std_side_image'" in CSS style?

thanks!

CC, relative newbie.