Materialize Chips
home
Run
screen_rotation
fullscreen
cloud_download
navigate_before
navigate_next
<!DOCTYPE html> <html> <head> <!--Import Google Icon Font--> <link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <!--Import materialize.css--> <!-- Compiled and minified CSS --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.8/css/materialize.min.css"> <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script> <!-- Compiled and minified JavaScript --> <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.8/js/materialize.min.js"></script> <!--Let browser know website is optimized for mobile--> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> </head> <body> <div class="chips"></div> <div class="chips chips-initial"></div> <div class="chips chips-placeholder"></div> <script> $('.chips').material_chip(); $('.chips-initial').material_chip({ data: [{ tag: 'Apple', }, { tag: 'Banana', }, { tag: 'Mango', }], }); $('.chips-placeholder').material_chip({ placeholder: 'Enter tag Name', secondaryPlaceholder: '+Tag', }); $('.chips').on('chip.add', function(e, chip){ alert("You Have added chip"); }); </script> </body> </html>
<!DOCTYPE html> <html> <head> <!--Import Google Icon Font--> <link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <!--Import materialize.css--> <!-- Compiled and minified CSS --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.8/css/materialize.min.css"> <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script> <!-- Compiled and minified JavaScript --> <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.8/js/materialize.min.js"></script> <!--Let browser know website is optimized for mobile--> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> </head> <body> <div class="chips"></div> <div class="chips chips-initial"></div> <div class="chips chips-placeholder"></div> <script> $('.chips').material_chip(); $('.chips-initial').material_chip({ data: [{ tag: 'Apple', }, { tag: 'Banana', }, { tag: 'Mango', }], }); $('.chips-placeholder').material_chip({ placeholder: 'Enter tag Name', secondaryPlaceholder: '+Tag', }); $('.chips').on('chip.add', function(e, chip){ alert("You Have added chip"); }); </script> </body> </html>
Copyrights@tutorialsplane.com