Smoking on the boadwalk will be a thing of the past starting next year in Wildwood.

On Wednesday, the city commissioners approved an ordinance to ban smoking along the boardwalk and adjoining ramps and stairs starting in January, the Atlantic City Press reported.

North Wildwood is expected to vote on a similar ordinance in June.

Officials in both Shore towns said concerns over health hazards from secondhand smoke and the risk of fire from discarded cigarette butts prompted the action. Already, the activity is banned at the Morey's Piers and Beachfront Waterparks attractions on the boadwalk, the Press reported.

"There's a different view of cigarette smoking than there used to be," Mayor Ernie Troiano told the Press.

In March, Longport, just south of Atlantic City, banned smoking on its beaches. Belmar, Cape May Point, Lavallette, Long Branch, Ocean City, Point Pleasant, Rockaway, Seaside Park, Spring Lake, and Surf City also have smoking bans.

Violators in Wildwood could face a fine of $1,000 or up to 90 days in jail. In North Wildwood, the fine would be $250, the newspaper previously reported.

North Wildwood Mayor Patrick Rosenello told the Press the town would use the summer of 2017 as an educational period to publicize the expected ban.

"We're going to ask people to refrain from smoking this year and that it will be banned for next year," he said.