asked on
$("#396819").trigger('click');
var leadTable = $("#leads-table").find('tr').each(function(){});
leadTable.on('click', getLeadTimeline);
ASKER
<table id="leads-table" class="table">
<thead class="">
<tr>
<th id="hdr_ENG_DATE" style="">Date</th>
<th d="hdr_CHANNEL_TYPE" style="">Channel</th>
<th d="hdr_STATUS" style="">Status</th>
</tr>
</thead>
<tbody>
<tr id="396819" class="396819" name="96544">
<td> Feb 09, 2018</td>
<td> Pipeline List import</td>
<td> Closed</td>
</tr>
<tr id="104706" class="104706" name="33010">
<td> Aug 06, 2015</td>
<td> Email</td>
<td> Deleted</td>
</tr>
<tr id="89295" class="89295" name="34564">
<td> Apr 02, 2015</td>
<td> Email</td>
<td> Closed</td>
</tr>
<tr id="22625" class="22625" name="18323">
<td> Nov 12, 2013</td>
<td> Short URL</td>
<td> Won</td>
</tr>
</tbody>
</table>
$("#leads-table tr").click( getLeadTimeline );
$("#396819").trigger('click');
ASKER
JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.
TRUSTED BY
Please post the relevant HTML as well. Also did you check if you are getting any errors? depending upon the browser you are using press CTRL+SHIFT+I OR F12 to check the console and see if there are any errors being listed.
Also if you are comfortable spending some extra minutes, create your scenario on https://jsfiddle.net so that it can be quickly accessed by experts.
Regards,
Chinmay.