Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript on enter search

function search(query){
   query.preventDefault();
   let vquery = query.target.elements["search"].value;
   console.log(vquery)
   
}

something.addEventListener("submit", search, false)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #enter #search
ADD COMMENT
Topic
Name
6+4 =