Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to put submit type of input element in a queryselector in javascript

function checkForm(){
     var form = document.forms[0];
     var selectElement = form.querySelector('input[name="pwd"]');
     var selectedValue = selectElement.value;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #put #submit #type #input #element #queryselector #javascript
ADD COMMENT
Topic
Name
3+5 =