Wednesday, September 25, 2013

How to display set of 5 id's in html page?

How to display set of 5 id's in html page?

I have html files with 100 lines of proverbs in that i have id for all
proverbs.
For example:
<a id="1">1. Proverb ...</a>
<a id="2">2. Proverb ...</a>
//....
<a id="100">100. Proverb ...</a>
i have textbox. if user enters 5 in it, it goto /page.html#5 like this
basic concept, i was displaying these proverbs.
My Question is, If user enters 5, page.html should show 5 to 10. But, I
dunno how to do this. I tried like /page.html#5&max-results=5, but doesn't
works.
Any one knows how to do this. If answer in html or php or js will be more
useful. Every answer will be much appreciated.

No comments:

Post a Comment