var a = $('.step'); var max = a[0].href.match(/max=(\d+/)); a[0].href=a[0].href.replace(/&max=\d+/)+'&max='+(parseInt(max[1])+1)
var href = "/list?type=&sortType=created&offset=100&max=100" ; href = href.replace(/&max=(\d+)/, function(a, b) { return '&max='+(++b) }); alert(href)