Search
 
SCRIPT & CODE EXAMPLE
 

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);    
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: freenom 
Javascript :: flutter loops vs javascript loops 
Javascript :: const justCoolStuff = (arr1, arr2) = arr1.filter(item = arr2.includes(item)); 
Javascript :: react-metismenu-router-link 
Javascript :: denuncia perturbação 
Javascript :: negative indexing in arrays javascript 
Python :: abc list 
Python :: python check if path does not exist 
Python :: install BeautifulSoup in anaconda 
Python :: seaborn figsize 
Python :: get yesterday date python 
Python :: python show all columns 
Python :: install telethon 
Python :: check python 32 or 64 
Python :: check if message is in dm discord.py 
Python :: python spawn shell 
Python :: python check is os is windows 
Python :: mypy ignore line 
Python :: WARNING: There was an error checking the latest version of pip. 
Python :: python get line number of error 
Python :: python windows notification 
Python :: continue reading lines until there is no more input python 
Python :: download from url using urllib python 
Python :: txt to list python 
Python :: how to loop through dates in python 
Python :: auto datetime in django models 
Python :: convert date time to date pandas 
Python :: how to find the longest string in a list in python 
Python :: download pdf from link using python 
Python :: animations text terminal python 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =