css - How to fetch page number of bookmark in html -


i have multiple bookmarks in html document. trying create link these bookmarks. link works absolutely fine.i need mention page numbers of bookmark well.

below code.

<a href="#bookmark1">page_number</a> 

how fetch value page_number of bookmark location?

add 1 id in tag. , use code

<a href="#bookmark1" id="idaa">page_number</a>  $('#idaa').html(); 

Comments