Hi There,
I’m using formToData on my form using framework7 v2,
It’s not working or I’m missing something?
$$(’.submit’).on(‘click’, function(e){
e.preventDefault();
var $ = this.$;
var app = this.$app;
var formData = app.formToData(’#My-Form’);
app.request({
type: “POST”,
url: “my-url”,
data: formData,
cache: false,
success: function(data){
$$(’#messages’).html(data);
},
error: function(xhr) { // if error occured
$$(’#messages’).html(“Error occured, please try again.”);
}
});
});
when execute message come Uncaught ReferenceError: formToData is not defined on chrome dev console