Travis Zajac had the other goal for New Jersey (29-24-13), which won for the fifth in seven games to move within two points of the third-place Flyers in the tightly bunched Metropolitan Division.
Nicklas Grossman scored for the Flyers (33-25-7), who are 7-2-1 in their last 10 games. Philadelphia had a potential tying goal by Scott Hartnell disallowed by officials with 40.1 seconds remaining because it was determined that Hartnell pushed goalie Martin Brodeur into the net.
Marek Zidlicky set up Jagr for the decisive goal with a backhanded pass from behind the net. Jagr lifted it off goalie Steve Mason and just inside the near post from close range to put New Jersey ahead 2-1 with 12:18 left.
I mean, hockey had to change the rules because of Marty, and that's impressive. I got two Stanley Cup rings because of the guy. Look at the banners of [Scott Niedermayer, Scott Stevens and Ken Daneyko] and Marty is right up there when you think about the New Jersey Devils; he was part of the core group and he'll go down as one of the greatest goalies ever.
— New Jersey Devils center Scott Gomez on former teammate Martin Brodeur, who will announce his retirement Thursday