Site icon Sibeesh Passion

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]

Exit mobile version