I want to retrieve attribute values of all rows present in my table.and i some how done that but the starting & ending values comes as “undefined”.
how to apply validation on that.i tried some code but doesnt seem to be work.
function currentTicketStatus() {
var ids;
$('tbody tr').each(function() {
ids += ((ids == '' && ids !== 'undefined') ? '' : '|') + $(this).attr('title');
});
alert(ids);
}
you can try this
or you can try this