MooTools Plugin for filtering table rows.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


A simple plugin MooTools to filter a standard HTML table. The user enters a term in a textfield and just the table entries which contain it will be shown.


How to use

First you must to include the JS files in the head of your HTML document.

    <script type="text/javascript" src="mootools-core.js"></script>
    <script type="text/javascript" src="FilterTable.js"></script>

In your JS.

   window.addEvent('domready',function() {
          new FilterTable({filterClass: 'filterable'});

In your CSS.

   <style type="text/css">
   .highlighted{background: #ffff00}  

In your HTML.

   <table WIDTH="100%" BORDER="0" CELLSPACING="1" CELLPADDING="2" class="filterable">
      <tr BGCOLOR="">
           <TD ALIGN="MIDDLE"><FONT COLOR=""><B>Project&#160;Name</B></FONT></TD>
           <TD ALIGN="MIDDLE"><FONT COLOR=""><B>Description</B></FONT></TD>
       <TD ALIGN="MIDDLE"><FONT COLOR=""><B>Files</B></FONT></TD>
       <TD ALIGN="MIDDLE"><FONT COLOR=""><B>Activity&#160;%</B></FONT></TD>
      <tr BGCOLOR="#FFFFFF"><td><A HREF="">FCKeditor</A></TD><TD>Online text editor (DHTML editor), for ASP, ASP.NET, ColdFusion, PHP, Java and JavaScript brings to the web many of the powerful functionalities of known desktop editors like Word. It's XHTML compliant and works with Firefox, Mozilla, Netscape and IE.</td><td><A HREF="#"><IMG src="#" border="0" alt="released files" width="16" height="16"></A></td><td>99.99%</td></tr><TR BGCOLOR="#EAECEF"> <td><A HREF="">TinyMCE</A></TD><td>TinyMCE is a platform independent webbased Javascript HTML WYSIWYG editor control, developed in JavaScript/ECMAScript and it's main features include theme/template support, 
      language support and plugin extentions. Works in Mozilla, Firefox and MSIE</TD><td><A HREF=""><IMG src="#" border="0" alt="released files" width="16" height="16"></A></TD><td>99.35%</TD></TR><TR BGCOLOR="#FFFFFF"> <td><A HREF="">ARSC Really Simple Chat</A></TD><td>ARSC is a webchat system that uses PHP and MySQL and allows comfortable chatting with every browser on the surface of this planet, using JavaScript, frames HTML streaming for modern browsers down to a one-page reload-yourself version for text browsers.</TD><td><A HREF=""><IMG src="#" border="0" alt="released files" width="16" height="16"></A></TD><td>98.82%</TD></TR>


You can view in action:


  • MooTools Core 1.3