$(function() {
  $('div#plus').live('click', function() {
      var i =  $(this).children('input').val();
      st =  this;
      $.getJSON('/vote/?i=' + i, function(data){
          if (data["result"] == 1)
          {
          $(st).children('#votes').fadeOut(1000, function() {
              $(st).children('#votes').replaceWith('<b id="votes" style="dispaly:none;">' + data["total"]  + '</b>');
            });
          }
      });
  });
});







