How to return data ajaxSubmit?

When using ajaxSubmit encountered some difficulties.
Code does not work. The error in the syntax. I'm trying to return data in the element with the class main_background. The function is called but no data is returned.
Where is the error and how to fix it?

$('.graph_control_settings').on('change', function(){
$("#graph_control_form").ajaxSubmit({url: 'actions.php', type: 'post',success: $('.main_background').html(data)});
return false;
});
June 8th 19 at 17:09
1 answer
June 8th 19 at 17:11
Solution
success should be represented by an executable function, TK is colback perform a send data, in other words:

success: function(data){
$('.main_background').html(data);
}

Find more questions by tags JavaScriptjQueryAJAX