I have this Mootools 1.11 script that is updating div after the form is submited , form sends data to 'form.php' file and it returns a message like "form sent."
I would like to convert it to mootools 1.4.1
Mootools 1.11
$('myform').addEvent('submit', function(e) {
new Event(e).stop();
var log = $('log_res').empty().addClass('ajax-loading');
this.send({
update: log,
onComplete: function() {
log.removeClass('ajax-loading');
}
});
});
I hope someone help me. Thanks