To get the nth element
$.trim($("#pagerjqxgrid div:nth-child(3)").text()); To get the 1539 from a string of "1-10 from 1539"$.trim($("#pagerjqxgrid div:nth-child(3)").text().split('of')[1]); To find out the third element if a div and split the text to two array and get the 2nd value
$.trim($("#pagerjqxgrid div:nth-child(3)").text()); To get the 1539 from a string of "1-10 from 1539"$.trim($("#pagerjqxgrid div:nth-child(3)").text().split('of')[1]);