Skip to content

Instantly share code, notes, and snippets.

@beyond-code-github
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beyond-code-github/367b446a51d83f19d136 to your computer and use it in GitHub Desktop.
Save beyond-code-github/367b446a51d83f19d136 to your computer and use it in GitHub Desktop.
Students list markup
<h1>List of students</h1>
<form action="api/students">
<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/students", [
{ 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