خرید بک لینک

Vote count: 0

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?

asked 42 secs ago

- - , .

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 27 بهمن 1394 ساعت: 20:27

صفحه بندی