HAMMONTON — When a woman accidentally locked her grandson and her dog in her car, state troopers broke a window to get everyone to safety.

According to the New Jersey State Police, when the woman realized she had locked her keys in the car Friday evening with the child and dog inside, she "frantically" dialed 911. When the troopers responded to Batsto Village, they were able to get everyone safely out of the car.

The State Police said the child and the dog were in the car for around 30 minutes before they were rescued by police.

The troopers, Jacob Sherry and Steven Hodge, said they could see the child sweating after they got him out of the car, and put him into their air conditioned car to cool off. When EMTs arrived at the scene the child was given a "precautionary evaluation," determining he was okay.

"The appreciative grandmother taught us all a valuable lesson," the state police said. "Secure your keys before placing children and animals in cars."

More From New Jersey 101.5:

Contact reporter Adam Hochron at 609-359-5326 or Adam.Hochron@townsquaremedia.com

More From New Jersey 101.5 FM