Thanks for reply.
Can you write a sample page that main.php with a div content and a button,
$(‘a’).on(‘click’, function(e) {
$(‘div#content’).load(‘pages/defaultfunctionality.htm’);
…
and you will see what my problem when we click two or more time of the button.