meyvn / mdl-selectfield

Material Design Lite selectfield component (https://github.com/google/material-design-lite)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mdl-selectfield

Material Design Lite selectfield component (https://github.com/google/material-design-lite)

Live Example

Check out the jsfiddle

Basic use

To use any MDL component, you must include the minified CSS and JavaScript files using standard relative-path references in the <head> section of the page, as described in the MDL Introduction.

Examples

Select field.

<div class="mdl-selectfield mdl-js-selectfield">
  <select id="myselect" name="myselect" class="mdl-selectfield__select">
    <option value=""></option>
    <option value="option0_value">option 0</option>
    <option value="option1_value">option 1</option>
  </select>
  <label class="mdl-selectfield__label" for="myselect">Choose option</label>
</div>

About

Material Design Lite selectfield component (https://github.com/google/material-design-lite)

License:MIT License


Languages

Language:HTML 73.9%Language:JavaScript 21.0%Language:CSS 5.1%