Find out the nth element and get the particular string

To get the nth element
[js]
$.trim($("#pagerjqxgrid div:nth-child(3)").text());
[/js]
To get the 1539 from a string of “1-10 from 1539”
[js]
$.trim($("#pagerjqxgrid div:nth-child(3)").text().split(‘of’)[1]);
[/js]

Leave a Reply

Your email address will not be published. Required fields are marked *

Serverless 360