form表單用js獲取值

<script> function checkForm() { var inputList = document.getElementsByTagName("input"); console.log(inputList.length); //獲取input的個數 //獲取單個的name的屬性和 input文本框的值 console. log( inputList[ 0].name
相關文章
相關標籤/搜索