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: 8 months ago
Size: 322 bytes


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 */