Last active
August 29, 2015 14:27
-
-
Save beyond-code-github/367b446a51d83f19d136 to your computer and use it in GitHub Desktop.
Students list markup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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