Multiple Selected Values from MDB-Select?


Topic: Multiple Selected Values from MDB-Select?

RubyUnity 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 pro premium 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
  • User: 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