I had to try it myself because I couldn't believe it, but Glidden Gripper works great. Not only for foam to foam but I also used it to adhere foam to my plywood deck. Here is a good video on the subject from back in 2012. I know there's some newer adhesives on the market that work well too.
|