Ejemplo 1: pasos de javascript
//want to link the form inputs with the submit
// add event listner
formEl.addEventListener("submit",click);
function click(event){
event.preventDefault();
var from = event.target.from.value;
var to = event.target.to.value;
var capacity = event.target.capacity.value;
var reserve = event.target.reserve.value;
var object=new data(from,to,capacity,reserve);
object.leftedSeats();
object.render();
object.total();
set();
}
Ejemplo 2: pasos de javascript
//define the html form in JS
var formEl = document.getElementById("form");
var allData=[];
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)