$(document).ready(function (e) {
$('#result').hide();
$('#all').hide();
$('#RegisterForm').on('submit', function(e) {
e.preventDefault();
$('#result').hide();
$('#all').show();
$('#btn').attr('disabled', true);
$.ajax({
type: 'POST',
url: '../includes/confirm_imf',
data: new FormData(this),
contentType: false,
cache: false,
processData: false,
success: function(result) {
var con = console.log(result);
$('#all').hide();
$('#btn').attr('disabled', false);
$('#result').show();
$('#result').html(result);
}
});
});
});