jQuery - Get the data from a cell in a selected row
<p>I have this snippet of code, testing whether or not I am getting results:</p>

<pre><code>$("#texts tr").on("click", function(evt){
    var parent_id = $(("td")[0]).text();
    alert(parent_id);
});
</code></pre>

<p>And it delivers nothing, so I imagine I have constructed my attempt at retrieving the data improperly?</p>

<p>UPDATE: html (generated using jade views in Node)</p>

<pre><code>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")
</code></pre>