WWW Tutorialspoint Com Materialize Materialize - Dropdowns HTM
WWW Tutorialspoint Com Materialize Materialize - Dropdowns HTM
Advertisements
Materialize provides dropdown CSS class to make a ul element as a dropdown and add the id of the ul
element to the data-activates attribute of the button or anchor element. The following table mentions the
available classes and their effects.
1
dropdown-content
Identifies ul as a materialize dropdown component. Required for ul element.
2
data-activates
id of the dropdown ul element.
Example
materialize_dropdowns.htm
<!DOCTYPE html>
<html>
<head>
<title>The Materialize Dropdowns Example</title>
<meta name = "viewport" content = "width = device-width, initial-scale = 1">
<link rel = "stylesheet"
href = "https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel = "stylesheet"
href = "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.
"https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min
<script type = "text/javascript"
src = "https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src = "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.m
</script>
</head>
Result
Advertisements
Easy Cleanup Slow Cooker Liner
8 second cleanup guarantee, BPA
Free Slow Cooker Liners for easy
cleanup
About us
©
Terms of use
Privacy Policy
FAQ's
Helping
Contact
Copyright 2019. All Rights Reserved.