Currently in span tag (inside class .next) their is "page 1 currently active". But when I clicked on anchor tag (class .next) the span tag updated quickly to "page 2 currently active". The problem is screen reader does not read the new updated value it still read "page 1 currently active".
Before clicked:
<a class="prev" role="button" tabindex="0">
<span class="screenreader"></span>
</a>
<a class="next" role="button" tabindex="0">
<span class="screenreader">page 1 currently active</span>
</a>
After clicked:
<a class="prev" role="button" tabindex="0"><span class="screenreader"></span></a>
<a class="next" role="button" tabindex="0"><span class="screenreader">page 2 currently active</span></a>
In jQuery:
var txt="page 2 currently active";
$(".next .screenreader").html(txt);
Preferred the link to see the image. in image you can see i am on page number 3 but screen reader still you are on page number 2