Skip to content

Instantly share code, notes, and snippets.

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" />
<table id="dataTableTarget">
$.dataTable("#dataTableTarget", "", [
{ label: "Name", value: "name" },
{ label: "Notes", value: "notes"} ]);
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.