“Klik TR Redirect Halaman Baru” Kode Jawaban

Klik TR Redirect Halaman Baru

<table class="table">
    <tbody>
        <tr data-url="some_url1">
            <td>39401602</td>
            <td>6/21/2013</td>
            <td class="text-primary">Open</td>
            <td>$79.99</td>
            <td>Amazing Widget (16 GB, White)</td>
            <td>Johnathan Doe</td>
            <td class="text-right none"> <a href="#" class="tick_icon gridneed_icon"></a>
    <a class="col-md-offset-1 cross_icon gridneed_icon" data-toggle="modal" href="#deleteproduct"></a>

            </td>
        </tr>
        <tr data-url="some_url2">
            <td>39401602</td>
            <td>6/21/2013</td>
            <td class="text-primary">Open</td>
            <td>$79.99</td>
            <td>Amazing Widget (16 GB, White)</td>
            <td>Johnathan Doe</td>
            <td class="text-right none"> <a href="#" class="tick_icon gridneed_icon"></a>
    <a class="col-md-offset-1 cross_icon gridneed_icon" data-toggle="modal" href="#deleteproduct"></a>

            </td>
        </tr>
    </tbody>
</table>
Talented Toad

Klik TR Redirect Halaman Baru

$(function () {
    $('table.table tr').click(function () {
        window.location.href = $(this).data('url');
    });
})
Talented Toad

Jawaban yang mirip dengan “Klik TR Redirect Halaman Baru”

Pertanyaan yang mirip dengan “Klik TR Redirect Halaman Baru”

Lebih banyak jawaban terkait untuk “Klik TR Redirect Halaman Baru” di HTML

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya