24 28 22 23id 22 29 submit in vanilla

Solutions on MaxInterview for 24 28 22 23id 22 29 submit in vanilla by the best coders in the world

showing results for - " 24 28 22 23id 22 29 submit in vanilla"
Agustín
21 Jan 2017
1var yourElement = document.getElementById("yourElementID");
2
3yourElement.addEventListener("submit", function(e) {
4  
5  if(something)
6  	e.preventDefault(); // // stop form submission
7  
8  // add your code HERE
9});