I have a function that takes the values of my inputs, and I want to take the values of the variable to my method to perform the insert. Does anyone have any tips on how to do this?
function insert_veiculo() {
var placa = $("#placa").val();
var quilometragem = $("#quilometragem").val();
var cor = $("#cor").val();
var tipo = $("#tipo").val();
var chassi = $("#chassi").val();
var ano = $("#ano").val();
var modelo = $("#modelo").val();
}
In function above, I get all the values of my inputs