(Reuters) - An attempt to embarrass newly elected U.S. Representative Alexandria Ocasio-Cortez with a nine-year-old video showing her dancing while in college backfired when it drew a wave of support for the liberal lawmaker on social media.

The widely-shared video shows the 29-year-old Democrat, the youngest woman ever elected to the U.S. Congress, dancing on a roof with other students at Boston University as they recreate dance scenes from famous 1980’s films like “The Breakfast Club.”

The caption under the original Twitter post, which was reported to have been uploaded by the now-deactivated account @AnonymousQ1776, read: “Here is America’s favorite commie know-it-all acting like the clueless nitwit she is....”.

Ocasio-Cortez graduated from the university in 2011 with degrees in international relations and economics.

The New York lawmaker, who rose to prominence last year after beating a 10-term incumbent in a Democratic primary, posted on Twitter on Friday a brief video of herself dancing outside of her office with a huge grin while the song “War” by Edwin Starr is heard playing in the background.

“I hear the GOP thinks women dancing are scandalous,” wrote Ocasio-Cortez in the tweet. “Wait till they find out Congresswomen dance too! Have a great weekend everyone.”

Ocasio-Cortez was part of a wave of Democratic women congressional candidates elected in November aiming to put more support behind the liberal progressive wing of the party.

Slideshow ( 5 images )

Twitter comments broke along partisan lines, with opponents describing the dance video as showing immaturity while supporters saw it as cute.

“Hey @AOC, just wanted to say that I thought the high school video of you dancing was awesome,” wrote Twitter user David Weissman, a New York-born columnist now living in Israel on Thursday, referring to Ocasio-Cortez by her Twitter handle. “It also shows your haters are desperate and pathetic, keep being you.”

The original posting meant to demean Ocasio-Cortez incorrectly said she was in high school at the time the video was recorded.

“The video of @AOC dancing is so well done. And she’s all joy in it. I can’t believe they thought that was going to be some scandal,” wrote DeRay McKesson, a U.S. civil rights activist who was a leader of the Black Lives Matter wave of protests against police violence that swept U.S. cities including Ferguson, Missouri, and Baltimore in 2014 and 2015.