In Delaware, the Federalists remained remarkably strong well into the 1820s. Not until 1828 did the Federalist and Democratic-Republican parties there give way to a Jackson party and an Adams party--each party containing former members of both of the old parties. I explain the survival of Federalism in Delaware at
https://groups.google.com/d/msg/soc.history.what-if/xr-nyxoCZVs/pip9IRoLX0UJ As I note there the state may have been too unusual to serve as a model for nationwide Federalist survival but I quote Jeff Paisley's observantion that Federalists in some other states did learn the techniques of popular campaigning:
"At any rate, political renovations following the Republican blueprints allowed the Federalists to not only hold their Connecticut fortress, but eventually, when the issue environment allowed, to regain competitiveness throughout New England and even in parts of the Middle States, at least at the local and state levels. While never close to gaining a majority of the House of Representatives after 1800, the Federalists held well over a third of the seats during the two congresses of the War of 1812, and as late as the 17th Congress, elected 1820, New York and Pennsylvania together sent 17 Federalists to Washington.
(45) If Andrew Jackson had lost the Battle of New Orleans or if the Federalists had ever been able to find an attractive national leader after the death of Alexander Hamilton, their eventual fate might have been very different. At the same time, they only got as far as they did by emulating the Republicans in style and methods, if not in substance."
http://a898248.sites.myregisteredsite.com/jeff/writings/Pasley1800.htm