Jennifer Garner was greeted with lots of hugs when she surprised students at Grazide Elementary School in Hacienda Heights, California.
The 43-year-old actress showed up to the school's mother-daughter dance at Friendly Hills Country Club, where she was also shooting her upcoming movie, The Tribes of Palos Verdes.
WATCH: Jennifer Garner Breaks Silence About Ben Affleck Split and the Nanny Scandal
"Thank you all for being so patient because I know movies are a hassle to have shooting around you," Garner said to the excited crowd. "So, thank you for letting us be here and being such great hostesses."
The mother-of-three gave a few quick hugs to some of the kids, adding, "Thank you so much for being here. I just wanted to say hi."
WATCH: Jennifer Garner Compares Split to Jennifer Aniston and Brad Pitt's Divorce
While Garner was excited to greet her young fans, her character in The Tribes of Palos Verdes most likely wouldn't attend any such dance as the actress is portraying a mother of two teenagers that is on the verge of a nervous breakdown.
In addition to shooting this drama, Ben Affleck's ex is also busy promoting her latest film Miracles From Heaven, and revealed to ET that it was one of her daughters that encouraged her to get back to work. "She said, 'Mom, it's really your turn,'" Garner recalled. "'We'll be OK. You should do it!'"