This is preview!
If you're using an ID as a selector you either need to guarantee that it's unique or limit the scope of your selector
Limiting the scope of the selector doesn't help. If you have duplicate IDs, you are going to have trouble.
That is, indeed, an erroneous though. It is loaded once. When you navigate to another page, it is loaded into the same document.I thought (incorrectly?) that index.php is loaded each time and is 'the' page, so the id's within that page would be unique.
I didn't mean to be critical. I just didn't want anyone to be lulled into thinking that they could get away with multiple IDs. You seemed to offer a sliver of hope where there is no hope. ;)