Почему функция выполняется один раз?
<form action="/module/create_group" method="post" id="create_group_form" onsubmit="return false" enctype="multipart/form-data">
<input type="submit" class="ssubmit" id="submit" value="Создать">
</form>
$(function(){
$('#create_group_form').on('submit', function(e){
e.preventDefault();
var $that = $(this),
formData = new FormData($that.get(0));
$.ajax({
url: $that.attr('action'),
type: $that.attr('method'),
contentType: false,
processData: false,
data: formData,
dataType: 'json',
success: function(json){
if(json){
$("#create_group").html('');
$("#create_group").html(json+'<br>');
}
},
error: function(error){
console.log(error);
}
});
});
});