Skip to content

Instantly share code, notes, and snippets.

@beyond-code-github
Last active August 29, 2015 14:27
Show Gist options
  • Save beyond-code-github/43df3b474234162f501c to your computer and use it in GitHub Desktop.
Save beyond-code-github/43df3b474234162f501c to your computer and use it in GitHub Desktop.
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