The song has been choreographed by Farah Khan and Ranbir said "it was great to shoot with Madhuri".
"Today, even after so much accomplishments and so much of hard work that she (Madhuri Dixit) has put in over the years, still she is so sincere, hardworking, passionate, and talented. She is there only to do her work, she is there on time," Ranbir said here in an interview.
Ranbir's father Rishi Kapoor worked with Madhuri in films like "Yaraana", "Sahibaan" and "Prem Granth".
Ranbir said he was heartbroken when Madhuri married Sriram Nene in 1999. He was 17 that time.
"The first woman I fell in love with was Madhuri Dixit. The first woman who gave me heart break was Madhuri Dixit when she got married. Just the fact that I got an opportunity to dance with her and to see her on the sets was just amazing," added the 30-year-old.
The Bollywood heartthrob also confessed that he had to "bribe" his friend and the film's director Ayan Mukerji to let him kiss her in the song.
"I bribed Ayan (Mukerji), as he is my friend. In the song, I found out that I had to kiss her on the cheek, so that was a lovely experience," said Ranbir, who even danced with the "dhak dhak" girl on the sets of dance reality show "Jhalak Dikhhla Jaa" last year while promoting "Barfi!".
Set to release May 31, "Yeh Jawaani Hai Deewani" also features Deepika Padukone, Kalki Koechlin and Aditya Roy Kapoor.
Photos: Swara Bhaskar, Sonali Kulkarni at Jagran Film Festival awards
Pics: Shahid Kapoor's transformation from chocolate boy to hottie
Photos: Kareena Kapoor Khan and Aamir Khan at Mumbai airport
Photos: SRK, wife Gauri, Aishwarya Rai, Shweta Bachchan at Vogue Awards
Photos: Harbhajan Singh-Geeta Basra's TV outing with daughter Hinaya