I'm following a Railscast to implement a pagination without page reload. This code works well but there are some details to improve:
$(function() {
$(".pagination a").click(function() {
$.get(this.href, null, null, "script");
retu false;
});
});
Code with improvements which doesn't work:
$(function() {
$(".pagination a").live("click", function(){
$.get(this.href, null, null, "script");
retu false;
});
});
Any ideas what's bad with this "live" method?
