EditTable
A small jQuery plugin to make your HTML tables editable
Install / Use
/learn @jdorn/EditTableREADME
EditTable
A small jQuery plugin to make your HTML tables editable.
When you click on a table cell, it is replaced with an editor that lets you change the value.
- Requires jQuery, but doesn't have any other dependencies
- Works on any standard HTML table and doesn't require additional markup
- Works great with Twitter Bootstrap, jQueryUI, and other CSS frameworks
- Keyboard navigation to move to different table cells (tab, shift+tab, up, down)
- Comes with 2 built-in editors - Text and Select - and it's easy to add your own
- Get table contents as a JSON array at any time
Basic Usage
EditTable requires a recent version of jQuery.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src='lib/EditTable.js'></script>
Making an existing HTML table editable is easy:
<table id="my_table">
...
</table>
<script>
$("#my_table").editTable();
// Get the rows as an array of JSON objects
var rows = $("#my_table").editTable('rows');
</script>
Checkout out the examples for more advanced options.
Related Skills
node-connect
354.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
112.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
354.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
354.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
