Make some changes on the web page after login, in dynamically page
Hello I have a dynamicly navigation bar in my web page. By saying dynamically I mean that the title and the content of the navigation bar come from the database. I want to make some changes on the web page after successfull login. I have written a function for that and it works properly. The problem is that the changes are made (I have done it with jQuery): <script type="text/javascript"> console.log("successfull"); $(document).ready(function() { $(".online-option").append("<p class='online_username'>Hi,  <?php echo $username; ?></p>"); $(".dropdown2").remove();//. dropbtn1 $(".online-option").append("<div><a class='signin_button_a' href='logout.php'>Log Out<i class='fa fa-sign-out' aria-hidden='true'></i></a></div>"); }); </script> But when I go to another page (from dynamicly navigation bar), the changes that I have made with jQuery disappear. I am grateful for any answer. Thank you.