Materialize css Dropdown list

      In materialize css we can easy to create the drop down list, when we use dropdown list in materialize css we should need to initiate the dropdown list in document ready.


  <div class="input-field">

    <select>

      <option value="">Choose your option</option>

      <option value="1">India</option>

      <option value="2">USA</option>

      <option value="3">Gujarath</option>

    </select>

    <label>Choose your place</label>

  </div>





<script>

$(document).ready(function() {

$('select').material_select();

});

  </script>




Example Program:- (Editor)


Editor is Loading...

Advertisement

0 nhận xét:

Đăng nhận xét