Topic: Multiple Selected Values from MDB-Select?

dginx pro asked 6 years ago


Hello Guys, where can say me, how to get all selected values from mdb-select via JS-Jquery?   i try to use this, but didn't working
var e = document.getElementById("metaCategorie");
var strUser = e.options[e.selectedIndex].value;

Sebastian Kaczmarek staff answered 6 years ago


Have you tried this one?
$('#my-select').val()

It should return an array of values

Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.5.10
  • Device: All
  • Browser: All
  • OS: All
  • Provided sample code: No
  • Provided link: No