“Clique em TR Redirect New Page” Respostas de código

Clique em TR Redirect New Page

<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

Clique em TR Redirect New Page

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

Respostas semelhantes a “Clique em TR Redirect New Page”

Perguntas semelhantes a “Clique em TR Redirect New Page”

Mais respostas relacionadas para “Clique em TR Redirect New Page” em HTML

Procure respostas de código populares por idioma

Procurar outros idiomas de código