$(window).bind("pageshow", function() { const form = $('form'); form[0].reset(); form[1].reset(); form[2].reset(); });