I mounted a page using jquery mobile with the function of all buttons in a main.js file Divs that when clicked I check in js and do the action ex:
$( "#mais-op" ).on( "tap", function() {
$.mobile.changePage( "2.html", { transition: "pop"} );
});
Everything works fine until I change the page to another page. When on the other page the on tap does not roll as if it had not loaded main.js more. But if I reload the page everything works again
How do I resolve this? Thanks