Dynamic List Not Working Like It Should.

Dynamic List Not Working Like It Should.

I have run into a problem with a dynamic listview - see attached fiddle,


I cannot get the ID when a list item is pressed from the second page once a page is inserted before or after it.  It I remove page one it works like it should but of course this is no good for me as I need it to run in a multi-page structure.

With thanks.