In jQuery, the method
.click() can be used to handle a button's click event.
However, this method doesn't work, if the button is dynamically loaded into the HTML document.
In this post, we show you how to use the
.on() method to handle this case.
In the web page design, it's convenient to have a navigation menu bar on top of the website to allow users to switch between different pages. In this post, we show you a general method in jQuery to implement the pages being dynamically loaded regarding the user selection.