table_tools.js

A fun little exercise in pure JavaScript. Parse a plain HTML table, process it, and rearrange instantly. I'm a big fan of DigiKey's parametric search.

DEMO 1 / DEMO 2

Features

Use It

Get the code

To use it, just add a <div class="table-wrapper ttools"> wrapping your table element. To headers, specify data type using datatype="alpha" or "numeric". That's it.

Alternatives

Yes, I know there are many (probably more well-written) alternatives out there. Some older than time.