Tutorial Load Only a Section of a Page
Use Case You want to AJAX load a section of another page on your site onto the current page. Say your eCommerce CMS system creates a dynamic...
https://iskablogs.blogspot.com/2014/03/tutorial-load-only-section-of-page.html
Use Case
You want to AJAX load a section of another page on your site onto the current page. Say your eCommerce CMS system creates a dynamic menu of products, but that exists as a subdirectory of your site and you want to use that on the homepage.
jQuery
$("#mainNav").load("/store #mainNav")
The first param is the URL (only works for same-domain requests!) and the second (well, technically it's
You want to AJAX load a section of another page on your site onto the current page. Say your eCommerce CMS system creates a dynamic menu of products, but that exists as a subdirectory of your site and you want to use that on the homepage.
jQuery
$("#mainNav").load("/store #mainNav")
The first param is the URL (only works for same-domain requests!) and the second (well, technically it's