Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

display form input on console jquery

var nameInput = document.getElementById('name');

document.querySelector('form.pure-form').addEventListener('submit', function (e) {

    //prevent the normal submission of the form
    e.preventDefault();

    console.log(nameInput.value);    
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #display #form #input #console #jquery
ADD COMMENT
Topic
Name
1+3 =