PHP Classes

File: js/obtainInputValuesByClassName.js

Recommend this page to a friend!
  Classes of bamigboye biodun   Logical Functions   js/obtainInputValuesByClassName.js   Download  
File: js/obtainInputValuesByClassName.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Logical Functions
General-purpose PHP and JavaScript functions
Author: By
Last change:
Date: 1 year ago
Size: 322 bytes
 

Contents

Class file image Download
const obtainInputValuesByClassName = className => { let formData = document.querySelectorAll('.' + className) return Array.from(formData, (val) => val.value.trim()) } /* Author : Biodun Bamigboye This function recieves a className that is to be added to multiple input field and outputs an array of its value */