var str = $('#formzakaz').serialize(); $.post('index.php?action=cpchangerange&changerange=true&newcpadd=true', str, function(data) { var json = eval("(" + data + ")"); alert(json.cpid); },"json");