Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Teachers list markup
<h1>List of teachers</h1>
<form action="api/teachers">
<input type="text" id="name" />
<input type="text" id="notes" />
<input type="submit" id="addNewButton" />
</form>
<table id="dataTableTarget">
</table>
<script>
$.dataTable("#dataTableTarget", "http://example.com/teachers", [
{ label: "Name", value: "name" },
{ label: "Notes", value: "notes"} ]);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.