I have this snippet of code, testing whether or not I am getting results:
$("#texts tr").on("click", function(evt){
var parent_id = $(("td")[0]).text();
alert(parent_id);
});
And it delivers nothing, so I imagine I have constructed my attempt at retrieving the data improperly?
UPDATE: html (generated using jade views in Node)
extends layout
//- Format for displaying list of texts
block content
h1 Equity Texts
table.table.table-striped.table-hover.table-bordered
thead
tr
th Objid
th Book Title
tbody#texts
each text in texts
tr(id = "book_" + text.objid)
td= text.objid
td= text.book_title
script(src="/jquery.min.js",type="text/javascript")
script(src="/handler.js",type="text/javascript")