How would I bind links added to the DOM to a pushPage method?
I’m populating parts of the page dynamically, the content being populated, I’d like to bind all links in this new content to a pushPage method.
I need to target a div from inside the newest (or top) page template after pushPage method is fired.
Is there an easy way to do this?
I’m basically reusing the template for each page (after the inital page), and using php to load the html dynamically for the content of the template. The problem is, they all have the same ID’s.
Is there a way after pushPage generates the new navigator page, to increment the id by one so they’re unique?