Why my offNext keep walking when it has been given the conditions? But offPrev conditions is work!!
offPrev = vOffset - 10; if(offPrev <= 0){ offPrev = 0; } offNext = vOffset + 10; if(offNext < 10){ offNext = 0; } range = (vOffset + 1) + ' - ' + (vOffset + 10); sPrev = 'showListByNameFilter(' + offPrev + ')'; sNext = 'showListByNameFilter(' + offNext + ')';