Hallo,
Ben bezig aan een contact formulier.
onderstaande code heb ik nu:
Nu wil ik dat hij de data van de formulieren meepakt, dit zal met ajax moeten denk ik?
Deze informatie wil ik zenden naar mij email. en als dit gelukt is dat er een alert word getoond.
wat moet ik nog toevoegen allemaal?
Gr, Jop
Ben bezig aan een contact formulier.
onderstaande code heb ik nu:
Code:
(function() {
// Create input element for testing
var inputs = document.createElement('input');
// Create the supports object
var supports = {};
supports.autofocus = 'autofocus' in inputs;
supports.required = 'required' in inputs;
supports.placeholder = 'placeholder' in inputs;
// Fallback for autofocus attribute
if(!supports.autofocus) {
}
// Fallback for required attribute
if(!supports.required) {
}
// Fallback for placeholder attribute
if(!supports.placeholder) {
}
// Change text inside send button on submit
var send = document.getElementById('contact-submit');
if(send) {
send.onclick = function () {
this.innerHTML = 'Vraag word verzonden';
}
}
})();
Nu wil ik dat hij de data van de formulieren meepakt, dit zal met ajax moeten denk ik?
Deze informatie wil ik zenden naar mij email. en als dit gelukt is dat er een alert word getoond.
wat moet ik nog toevoegen allemaal?
Gr, Jop