Topic: How to initialize <input>

KES free asked 2 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 free answered 2 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

  • ForumUser: 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