Updated

A judge has decided a law banning sagging pants is unconstitutional after a teenager spent a night in jail on accusations he exposed too much of his underwear.

Julius Hart, 17, was charged last week after an officer said he spotted the teenager riding his bicycle with 4 inches to 5 inches of blue-and-black boxer shorts revealed.

Hart's public defender, Carol Bickerstaff, urged a judge Monday to strike down the sagging pants law, telling him: "Your honor, we now have the fashion police."

Circuit Judge Paul Moyle ruled that the law was unconstitutional based on "the limited facts" of the case. Technically, however, the charge hasn't been dropped yet: a new arraignment awaits Hart on Oct. 5.

Voters in Riviera Beach approved the law in March. A first offense for sagging pants carries a $150 fine or community service, and habitual offenders face the possibility of jail time.

Proposals to ban saggy pants are gaining ground in several places around the U.S., and have met with opposition from civil liberties advocates who say they will lead to racial profiling against young African-Americans. The fashion is believed to have started in prisons, where inmates are not given belts with their baggy uniform pants to prevent hangings and beatings. By the late 1980s, the trend had made it to gangster rap videos, then went on to skateboarders in the suburbs and high school hallways.

Bickerstaff said she wants the city to drop the law — regardless of whether anyone dislikes low-riding pants.

"The first time I saw this particular fashion, I disliked it," she told the judge. "And then I realized I'm getting old."