JSFiddle - React, Tailwind, and code Playground

by Norlihazmey Ghazali

HTML

<tbody>
                        <tr>
                            <td colspan="12" style="width: 100% !important; padding: 0px !important; border: none !important">

                                <table id="censusgrid" style="width: 100% !important" class="footable_narrow footable">
                                    <thead>
                                        <tr>
                                            <th class="quote align_center">
                                                Quote<br />
                                                <label class="checkcentre checkbox">
                                                    <input type="checkbox" data-bind="checked:$root.CensusModel().IsShowQuotes(), event: { change: $root.CheckAllQuotes }">
                                                </label>
                                            </th>
                                            <th class="viewbtn align_center">
                                                <!--ko if:  $root.CensusModel().ShowGlobalToggleOrNot() == true -->
                                                View
                                                <br />
                                                <input type="image" class="font20 font-white censusExpandIcon" src="~/Content/images/globalexpand.png" data-bind='{ click: $root.SetGlobalToggle} ' />
                                                <!--/ko -->
                                            </th>
                                            <th class="last_name align_center hand" data-bind='click: function (data, event) { $root.SetOrder(data, event, "LastName") }'>Last Name<span class="icon-sort ml5"></span></th>
                                            <th class="first_name align_center hand" data-bind='click: function (data, event) { $root.SetOrder(data, event, "FirstName") }'>First Name<span class="icon-sort ml5"></span></th>
                                            <th class="zipcode...

JavaScript

$('#censusgrid tr').each(function () {
    var customerId = $(this).find("#ErrorMessage").attr('data-toggle');
    console.log(customerId);
});