Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

materialize dropdown js

document.addEventListener('DOMContentLoaded', function() {
    var elems = document.querySelectorAll('.dropdown-trigger');
    var instances = M.Dropdown.init(elems, options);
  });

  // Or with jQuery

  $('.dropdown-trigger').dropdown();
Source by materializecss.com #
 
PREVIOUS NEXT
Tagged: #materialize #dropdown #js
ADD COMMENT
Topic
Name
5+8 =