Jim Cramer saw a strong correlation on Wednesday between a change in consumer behavior, and the stocks the soared. Sometimes the change is due to the different habits of millennials, and sometimes it can be linked to a government mandate. Either way, they both played a role in how the market closed.

"I love behavior-change investing. It can be incredibly lucrative, and when you have a behavior-change theme you can use selloffs to pick stocks based on those changes, as long as you don't think they are merely fads," the "Mad Money" host said. (Tweet This)

The first obvious change on Wednesday was entertainment, meaning, how and what people consume and where they do it.

Traditional entertainment companies like Disney, Time Warner, 21st Century Fox, CBS and Discovery were totally shredded to pieces. The earnings from Disney raised enough eyebrows for investors to question how people are consuming television, and it freaked everyone out.

David Paul Morris | Bloomberg | Getty Images

An employee stacks items to be shipped at the Amazon.com fulfillment center in Phoenix, Arizona.

"I love behavior change investing. It can be incredibly lucrative, and when you have a behavior change theme you can use selloffs to pick stocks based on those changes"-Jim Cramer

People now want to watch what they want, when they want it, on the device of their choice, and they want to pay less for it than they currently do. That means they are spending more time watching Netflix, the television station for the world.

Granted, this theme may elude older folks who are set in their ways. However, Cramer found that younger people seem to be avoiding the cable hookup the same way they gravitated away from hard line telephones a few years ago.

"I've said that Netflix probably won't be finished running until it is worth $100 billion, nearly twice its current market cap. No, it won't go there in a straight line, but it's on the cusp of taking Asia by storm, and I think they like a bargain as much as anyone," Cramer said.

The same bargain trend extends to YouTube, which is buried within Google, and Facebook and even video games. Cramer recommended taking a look at Activision Blizzard, Electronic Arts or Take-Two Interactive. He reminded investors that just because you do not play doesn't mean the younger generation has grown out of video games.

Read more from Mad Money with Jim Cramer:

The same goes for shopping, with the rise of Amazon Prime. It kicks almost every retailer's butt with the option of free two-day shipping. Investors assumed it would break the bank for Amazon years ago, and instead Amazon has laughed all the way to the bank.

Or how about the health trend? Under Armour now has a connected fitness community that is 140 million people strong. Skechers is the No. 2 athletic shoe in the country, and Nike is easily correlated with athletics. These stocks all hit 52-week highs on Wednesday.

Then, there were the government mandated themes, such as solar. Cramer would assume that, with the plummeting price of oil, investors would want to stay away from solar. First Solar ramped up big time on terrific visibility for orders and was up more than 16 percent. This is counteractive to coal, which has declined a few percent every year. Suddenly, after an onslaught from the EPA, and Cramer saw coal companies disappearing left and right. He suspects nearly every coal company will do the same, too.

"Sometimes it is enough to know the zeitgeist and get the big gains. That is why the bottom line is to stay focused on themes, like how people consume entertainment, how they are still frugal post the great recession, yet want to invest in homes and stay fit and trim and healthy," Cramer said.