I’m loading content from one page into another via the jquery .load event. Im currently doing it like this:
$('#someDiv').load('/directory/file.html #someDiv');
However, It would be better if I didnt have to specify the name of the div every time. Since they are the same on both pages, is there a way to say, “find a div on page1 and load its content into the matching div on page2? The idea is to not have to update the script every time there is new content added.
Thanks in advance.
After about a week of working at it… I figured it out. The script is below:
Steps to use: