I want to create a menu which will be used in 40 to 50 pages. I want to create it in a separate file so that it can be updated easily. How to do that?
Put your menu HTML somewhere and use jQuery to load it into a designated element:
$("#menu").load( "menu.html" );
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With