Sixty-two high school students in Teaneck, New Jersey, were arrested Thursday after breaking into their high school overnight for a senior class prank that involved urinating in hallways.

In addition to urinating in hallways, the students greased doorknobs with petroleum jelly and taped hot dogs to lockers, police said.

According to The Associated Press, officers responded to a burglar alarm going off at Teaneck High School shortly after 2 a.m. They found graffiti on the walls, chairs broken, desks flipped over, silly string on the floors and balloons scattered throughout the building.

Before the police went inside the building, they said they could see several students through the building's windows.

Police from more than a dozen neighboring towns, in addition to county law enforcement officers, were called in to put a stop to the prank and arrest the students.

Police dogs were used to go in each room and round up students, some of whom were hiding from officers.

"It is possible that a few got away, but the majority were caught," Police Chief Robert Carney said.

Carney said the students told officers it was a senior prank, which is a tradition at the Northern New Jersey school that has 1,300 students. However, the prank is usually not that elaborate.

Police said that when the students were arrested, some were scared, but others were laughing.

"If this was a senior class prank, I just don't believe that a lot of them realize the seriousness of it as far as breaking into the building," Sgt. John Garland said. "That's a burglary, and I don't think they understand that. It's a very serious offense."

Twenty-four of the students who are at least 18 are being charged with burglary and criminal mischief. The other 38 are juveniles and are being released to their parents.

Barbara Pinsak, the Teaneck school superintendent, said at a news conference that the district is considering discipling the students.

"The district continues to assess the situation and is considering the consequences that we'll impose on any students implicated," she said.

The school was cleaned up in time for classes to resume Thursday.