The problem I am encountering is that I want to be able to view the row variable without the waiting for event click.
Works: JQuery event waiting for click, row is view-able:
$('[data-row]').on('click', function() {
var row = $(this).attr('data-row');
alert(row); //
});
Does not work: This is what I want to work...?:
$('[data-row]').(function() {
var row = $(this).attr('data-row');
alert(row);
});