Jennifer Lopez ''danced all night long'' at her 45th birthday bash in the Hamptons last night (24.07.14).

The 'I Luh Ya Papi' hitmaker spent the duration of her party on the dance floor at Nammos, a Mediterranean restaurant, in New York celebrating her milestone with her friends - including Khloé Kardashian, French Montana, Scott Disick and Rachel Zoe - and family.

A source told ''She was so happy and she stayed till 4 am. They had a dinner party and there was champagne, and she danced all night long. Everybody was dancing.''

The brunette beauty - who has six-year-old twins Max and Emme with ex-husband Marc Anthony - posted a picture of herself all dressed up for her party on Instagram yesterday evening, which she accompanied with the caption: ''Let the games begin! #itsmyparty #funtimes #birthdaygirl #aintnuthingbutanumber (sic).''

Meanwhile, Jennifer's ex-boyfriend Casper Smart, whom she split from a few months ago following two years of dating, proved they're still friends after he sent her a birthday message on Twitter yesterday.

The choreographer posted a picture of a pink bear cake, which he had given Jennifer for her 43rd birthday two years ago, and accompanied it with the caption: ''Happppppppy Birthday to the most Beautiful lil bear in the world!!!! May all your wishes come true!! @JLo (sic).''