Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.load_ajax = function(id){
- var result = false;
- $.post('load.php', {data: id}, function(res){
- var raspuns = $.evalJSON(res);
- if (res != "false"){
- $("form :input").attr("checked",false);
- $.each(raspuns, function(n,v){
- $(":input[value="+v+"]").attr('checked',true);
- });
- result = true;
- } else {
- result = false;
- };
- });
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment