W3.CSS Filters







googletag.cmd.push(function() { googletag.display('div-gpt-ad-1422003450156-2'); });



W3.CSS Filters




❮ Previous
Next ❯




With a little bit of JavaScript, all components in W3.CSS can be filtered.




Filter Tables




Example









































Name Country
Alfreds Futterkiste Germany
Berglunds snabbkop Sweden
Island Trading UK
Koniglich Essen Germany
Laughing Bacchus Winecellars Canada
Magazzini Alimentari Riuniti Italy
North/South UK
Paris specialites France


function myFunction2() {
var input, filter, table, tr, td, i;
input = document.getElementById('myInput');
filter = input.value.toUpperCase();
table = document.getElementById("myTable");
tr = table.getElementsByTagName('tr');
for (i = 0; i -1) {
tr[i].style.display = '';
} else {
tr[i].style.display = 'none';
}
}
}
}



Try It Yourself »








googletag.cmd.push(function() { googletag.display('div-gpt-ad-1493883843099-0'); });






Filter Lists



Example




  • Adele

  • Agnes


  • Billy

  • Bob


  • Calvin

  • Christina

  • Cindy



function myFunction5() {
var input, filter, ul, li, a, i;
input = document.getElementById('myInput2');
filter = input.value.toUpperCase();
ul = document.getElementById("myUL");
li = ul.getElementsByTagName('li');
for (i = 0; i
  • -1) {
    li[i].style.display = '';
    } else {
    li[i].style.display = 'none';
    }
    }
    }



  • Try It Yourself »



    Filter Dropdowns



    Example






    Try It Yourself (Hover) »

    Try It Yourself (Click) »



    ❮ Previous
    Next ❯

    Popular posts from this blog

    Colors HSL

    Google Hardware Icons

    SVG Filters