Làm sao để submit form

Em chào anh chị,
Em có 1 câu hỏi là thế này:
Em muốn là sau khi em click yes của javascript thì form được submit, do trước đó e có dùng e.preventDefault(); để chặn submit.
Code JS của em:

document.getElementById('test').onclick = function(e){
	e.preventDefault();
    swal({
        title: "Are you sure?",
        text: "Do you want create this account !",
        type: "warning",
        showCancelButton: true,
        confirmButtonColor: '#DD6B55',
        confirmButtonText: 'Yes, create it!',
        cancelButtonText: "No, cancel plx!",
        closeOnConfirm: false,
        closeOnCancel: false
    },
    function(isConfirm){
    if (isConfirm){
    //Chỗ này code làm sao để form được submit ạ
      swal("Created!", "This account has been creacted!", "success");
    } else {
      swal("Cancelled", "This account not be create :)", "error");
    }
    });
};

Em chân thành cảm ơn !!!

83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?