使用javascript将文本字段的值获取到表格的单元格中

时间:2016-02-17 14:24:57

标签: javascript

如何使用javascript获取进入表格单元格的文本字段的值?

这是我的代码:

<table id="elenco2" cellspacing="0" cellpadding="2" class="sortable" style="width:98%;">
    <tbody>
        <tr> 
            <th align='left'>Informazione</th>
            <th align='left'>Valore</th>
        </tr>
        <tr>
            <td>
                <ctl:input name="idtbin" tipo="text" flIns="H" flMod="H" flVis="H" arrayindex="${indice}" value="<%=valobene.getIdtbin().toString()%>" />
                <ctl:input name="tipo" tipo="text" flIns="H" flMod="H" flVis="H" size="50" maxlength="50" arrayindex="${indice}" value="<%=valobene.getTipo()%>" />
                <ctl:input name="informazione" tipo="text" flIns="L" flMod="L" flVis="L" size="50" maxlength="50" arrayindex="${indice}" value="<%=valobene.getInformazione()%>" />
            </td>
            <td>
                <ctl:input name="valore" tipo="text" flIns="E" flMod="E" flVis="L" size="50" maxlength="50" arrayindex="${indice}" value="<%=valobene.getValore()%>" />
            </td>
        </tr>
    </tbody>
</table>

0 个答案:

没有答案