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);
});
Also in JavaScript:
- in react js how to access history in component
- javascript sort numbers descending
- expo update react native
- splash screen resolution app.json
- tolowercase
- how to disable time option in select jquery
- adding two objects in javascript
- how to go to next line in javascript
- random numbers javascript
- How can I upload files asynchronously
- jquery close bootstrap model
- nodejs express routing get
- javascript howdo i redirect-to another webpage
- javascript dynamically access object property
- js create a promise
- .join in javascript
- exercism.io bob solution
- disable input field with jquery
- adonis js sort by
- change span value javascript
- statusbar reactnati
- export default function react
- functional component react with state
- javascript regex single line