function next_step step param1 param2 mod_id if step step var step ste

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
function next_step(step, param1, param2, mod_id) {
if(step && step != 0) { var step = step; } else { var step = 0; }
if(param1 && param1 != 0) { var param1 = param1; } else { var param1 = 0; }
if(param2 && param2 != 0) { var param2 = param2; } else { var param2 = 0; }
if(mod_id && mod_id != 0) { var mod_id = mod_id; } else { var mod_id = 0; }
$.post('/test_drive/next_step', {step:step, param_one:param1, address_id: param2, car_id:mod_id}).done(function (data){
$('#next_config').html(data);
});
return false;
}