zurchpet

Untitled

Apr 8th, 2011
499
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $.load_ajax = function(id){
  2.     var result = false;
  3.     $.post('load.php', {data: id}, function(res){
  4.         var raspuns = $.evalJSON(res);
  5.         if (res != "false"){
  6.             $("form :input").attr("checked",false);
  7.             $.each(raspuns, function(n,v){
  8.                 $(":input[value="+v+"]").attr('checked',true);
  9.             });
  10.             result = true;
  11.         } else {
  12.             result = false;
  13.         };
  14.     });
  15.     return result;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment