For weeks now, Jennifer Lopez has been doling out advice, offering feedback, mothering and critiquing the ‘American Idol’ contestants. On tonight’s episode, however, J. Lo stopped telling them what to do and showed them how to work it. She took the stage to perform her club banger, ‘On the Floor,' and she showed the 'Idol' hopefuls how it's done with a capital "D," and with an assist from rapper/producer Pitbull.

It's inspiring to watch her pull double duty, serving on the panel and performing. Being a mother of toddler twins, J. Lo knows a thing or two about juggling multiple tasks.

Lopez’s ‘Love?’ is out now, and it’s considered her comeback album, bolstered by the urban groove of the single. Come on, you know you were singing the "na na na” part while she rocked it tonight! Lopez shook what the good Lord gave her, dressed in a gold metallic outfit; she paired a fringed bra top with loose fitting harem-style pants a la MC Hammer. Even her nails were painted with metallic polish!

Lopez was joined by a group of dancers who writhed on the floor alongside her. Ultimately, this performance was dirty-sexy done right.

After she took the stage and changed back into regular clothes, Lopez featured a quick clip of the video her new single, 'I'm Into You.' She looked stunning as she frolicked on the beach with a hot young man. It was scintillating enough to make us desire more.

Watch Jennifer Lopez Perform 'On the Floor' on 'American Idol'

More From PopCrush