Skip to content

mikeludemann/pure-javascript-table-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pure JavaScript Table Search

A complete search in a table

Example

<input id='search' type='text' onkeyup='searchTable("#search","#data","tr","td")'>
<table id='data'>
  <tr>
    <td>1</td>
    <td>Potato</td>
    <td>Brown</td>
  </tr>
  <tr>
    <td>2</td>
    <td>Paprika</td>
    <td>Green</td>
  </tr>
  <tr>
    <td>3</td>
    <td>Banana</td>
    <td>Yellow</td>
  </tr>
  <tr>
    <td>4</td>
    <td>Apple</td>
    <td>Red</td>
  </tr>
</table>

<script src="tableSearch.js"></script>

About

A complete search in a table

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published