next click function url next attr href last last attr value post url l

1
2
3
4
5
6
7
8
9
$("#next").click(function() {
url = $("#next").attr("href")
last = $("#last").attr("value")
$.post(url, {'last': last}, function(data2) {
json = get_json(data2)
$("#category_thumbnails").replaceWith(json.html)
})
return false
})