This is being done using jQuery's .load(). jQuery Ajax Load HTML Page or External embather shower system installation video; concealed placental abruption Get ID of an element with JavaScript/jQuery. The element inside an element is nothing but for instance a span element inside a div element. to Pass Variables Between Pages In Javascript Another reason would be for SEO purposes. and Show DIV using JavaScript Get HTML element by Id. There is however, a lot of repetition and I'm wondering if there is a clean... Stack Exchange Network. The idea is to use the .attr () or .prop () method to get the id attribute value for the first matched element. Click Replaces One Div With Another