Having a problem regarding bootstrap navbar.
I am placing the navbar code in every page or should I place the navbar code in a single file and access it in all pages?
See Question&Answers more detail:osHaving a problem regarding bootstrap navbar.
I am placing the navbar code in every page or should I place the navbar code in a single file and access it in all pages?
See Question&Answers more detail:osYour question actually does not a question about bootstrap.
Since you are using the bootstrap, you must be using jQuery. You can use load()
which is a function of ajax to do this.
You can get the detail of the API here .load() | jQuery API Documentation