How to initialize


Topic: How to initialize <input>

KES asked 3 years ago

*Expected behavior*Hi. I use new mdb.Select(Element) to initialize element created on fly. How I can initialize 'input'?

Actual behavior

Resources (screenshots, code snippets etc.)


KES answered 3 years ago

var Elements = document.getElementsByClassName('form-outline') Elements.forEach(function(el) { new mdb.Input(el); });


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 3.8.0
  • Device: computer
  • Browser: firefox
  • OS: linux
  • Provided sample code: No
  • Provided link: No
Tags