This is exactly why you should never let your small child go to a public bathroom alone. Scroll down for video.

JACKSONVILLE, Fla. – Hours after police announced that a 6-year-old boy was sexually assaulted inside the bathroom of a McDonald’s restaurant, police announced they had arrested a man and charged him with capital sexual battery.

Jacksonville Sheriff’s Office Director Michael Bruno announced at a news conference late Friday night that a tip came in just after making Thursday’s assault public. The tip led officers to a dumpster on Emerson Street, not far from the McDonald’s where the attack occurred. They found a man hiding inside who witnesses positively identified as the suspect in the attack. His name has not been released.

Jacksonville Sheriff’s Office Chief Tom Hackney said the child’s father entered the bathroom about 5 p.m. Thursday and saw a 25- to 30-year-old black man wearing dark clothing leaving a stall where his youngest son was pulling up his pants.

The father realized what had happened, saw the attacker running away, got in his car and pursued him east on Emerson toward Spring Park Road, but lost sight of him.

“The father, like I said, recognized something wasn’t right, he took off after the subject, trying to catch up to him. He pursued the suspect from the McDonald’s restaurant all the way to Spring Park and Emerson Street where he lost sight of him,” Bruno said.

Read more: News 4 Jax