I read a lot about how to add stuff dynamically in jquery mobile, but I couldn't figure out how to add links.

Currently my solution looks like this:

1. Add a new Page - with id (id="list-1")
2. Creating a Link for it (href="#list-1")

This solution works perfectly in static pages, but I want to do it dynamically. I have tried a lot with `page()` and stuff like that but nothing helped me.

My questions are:

1. How do I add dynamic links & pages?
2. Did I choose the right way to use ids & anchors (#list-1) as links or is there another solution for jquery mobile?

Let me know if you need more information