Skip to main content
modificação código do exemplo
Fonte Link
fernandoandrade
  • 1,1mil
  • 9
  • 17

Tenta fazer assim:

$("#tabela-estacoes td").click(function() {
    var identifier = $(this).parent("tr").attr('identifier');
    var $form = $("<form></form>");
    $form.attr({
        action: "http://endereco/editar-estacoes-trabalho.php?id=" + identifierphp",
        target: 'blank'
    });

    $form.append('<input type="hidden" name="id" value="'+identifier+'">');

    $('body').append($form);
    $form.submit().remove();
});

Tenta fazer assim:

$("#tabela-estacoes td").click(function() {
    var identifier = $(this).parent("tr").attr('identifier');
    var $form = $("<form></form>");
    $form.attr({
        action: "http://endereco/editar-estacoes-trabalho.php?id=" + identifier,
        target: 'blank'
    });

    $('body').append($form);
    $form.submit().remove();
});

Tenta fazer assim:

$("#tabela-estacoes td").click(function() {
    var identifier = $(this).parent("tr").attr('identifier');
    var $form = $("<form></form>");
    $form.attr({
        action: "http://endereco/editar-estacoes-trabalho.php",
        target: 'blank'
    });

    $form.append('<input type="hidden" name="id" value="'+identifier+'">');

    $('body').append($form);
    $form.submit().remove();
});
Fonte Link
fernandoandrade
  • 1,1mil
  • 9
  • 17

Tenta fazer assim:

$("#tabela-estacoes td").click(function() {
    var identifier = $(this).parent("tr").attr('identifier');
    var $form = $("<form></form>");
    $form.attr({
        action: "http://endereco/editar-estacoes-trabalho.php?id=" + identifier,
        target: 'blank'
    });

    $('body').append($form);
    $form.submit().remove();
});