jellybean (n.) Look up jellybean at Dictionary.com
1905, from jelly (n.) + bean (n.). So called for its shape. Soon used in U.S. slang for "stupid person," probably encouraged by the slang sense of bean as "head."