Versão atual:

tabela nao salva dados

Estou testando a tecnica paixfilho em um formulario teste , porem nao esta salvando no dataset

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet" type="text/css"
    href="/portal/resources/style-guide/css/fluig-style-guide.min.css">
<link rel="stylesheet" type="text/css"
    href="/portal/resources/style-guide/css/fluig-style-guide-filter.min.css">
<script src="/portal/resources/js/jquery/jquery.js"></script>
<script src="/portal/resources/js/jquery/jquery-ui.min.js"></script>
<script src="/portal/resources/js/mustache/mustache-min.js"></script>

<script src="/portal/resources/style-guide/js/fluig-style-guide.min.js"></script>
<script    src="/portal/resources/style-guide/js/fluig-style-guide-filter.min.js"></script>
<script src="teste.js"> </script>

</head>
<body class="fluig-style-guide ">
    <div class="page-header">
        <h1>
            TESTE
        </h1>
    </div>
<form method="post">
    <div class="col-sm-4">
        <input class="form-control" id="numeroTeste" name="numeroTeste" >    
    </div>
    <div class="col-sm-3">
        <button id="testabotao" name="testabotao" class= "btn btn-success" onClick="addItemNaTabela()">inserir</button>
    </div>
    <div class="col-sm-12"><!-- Linha em branco -->&nbsp;
    </div>
    <div class ="table table-responsive">
        <table class="table" tablename="tabelaTeste" cellspacing="0" noaddbutton="true">
            <thead>                
                <tr>
                    <th>numero teste</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td class="col-sm-2" ><input type="text" name="teste" id="teste" class="form-control"  > </td>
                </tr>
            </tbody>
        </table>

    </div>

</form>
</body>
</html>

function addItemNaTabela() {

    var row = wdkAddChild("tabelaTeste");

    $("#teste___"+row).val($("#numeroTeste").val())


    ;
}

Versão (1):

Ver a versão formatada

tabela nao salva dados

Comentário

new question