Javascript called at the end of any row bind a hiddenvalue to a checkbox

E

etantonio

Ciao,
I've the following html file created by a servlet,
I need to associate in any row of the table the hidden value
HiddenDestinoAssociato to the checkbox checkCodDest,
I want to do this calling the javascript function setCheckCodDest().
It is possible to obtain this ???
Can you help me in this ??
Many Thanks

Antonio D'Ottavio
www.etantonio.it/en


/////////////////////////////////////////////////////////////////////////////////////////////////////

<html><head>
<link rel="STYLESHEET" type="text/css"
href="help_files/foglio_abacus.css">

<script language="JavaScript">
function setCheckCodDest()
{
// to be implemented
}
</script></head><body>

<table align="center">
<tbody><tr>
<th class="titolo" colspan="6"> Lista Destini </th>
</tr>
<tr><td>

<form name="formVista" id="formVista" method="post" target="AreaDati">
<input name="id_menu" id="id_menu" value="250401" type="hidden">

<table cellpadding="0" cellspacing="0"
width="100%"><tbody><tr><td><table id="tableMaker" class="tabella"
align="center" border="0" cellpadding="2" cellspacing="2">
<tbody><tr><th class="titolo"></th>
<th class="titolo">Destino associato</th>
<th style="display: none;" value="HiddenDestinoAssociato"></th>
<th class="titolo">Cod. Destino</th>
<th class="titolo">Descr. Destino</th>
<th class="titolo">Data Inizio Validita</th>
<th class="titolo">Data Fine Validita</th>
<th class="titolo">Servizio</th>
<th style="display: none;" value="HiddenServizio"></th>

</tr><tr class="dettaglio">

<script language="JavaScript">setCheckCodDest();</script>


<td align="left" valign="top"><input name="keyHidden" value="AUD$F"
type="hidden"></td>

<td class="dettaglio" align="left" nowrap="nowrap"><input
name="checkCodDest" id="checkCodDest" selected="true"
onclick="alternaCheckValid(this);" value="0" type="checkbox"></td>
<td style="display: none;"><input name="HiddenDestinoAssociato"
value="1" type="hidden"></td>
<td class="dettaglio" align="left" nowrap="nowrap">AUD</td>
<td class="dettaglio" align="left" nowrap="nowrap"> AUSTRALIA SIDNEY
</td>
<td class="dettaglio" align="left" nowrap="nowrap">19800101</td>
<td class="dettaglio" align="left" nowrap="nowrap">20371231</td>
<td class="dettaglio" align="left" nowrap="nowrap"><select
class="dettaglioEditabile" name="Servizio" id="Servizio" title="Tipo
Servizio"><option value=""> </option><option
value="B">Entrambi</option><option value="F">Fisso</option><option
value="M">Mobile</option><option value="I">Inma</option> </select>
</td>
<td style="display: none;"><input name="HiddenServizio" value="F"
type="hidden"></td></tr>

<script language="JavaScript">setCheckCodDest();</script>


<tr class="dettaglio">
<td align="left" valign="top"><input name="keyHidden" value="BGD$F"
type="hidden"></td>

<td class="dettaglio" style="background-color: transparent;"
align="left" nowrap="nowrap"><input style="background-color:
transparent;" name="checkCodDest" id="checkCodDest" selected="true"
onclick="alternaCheckValid(this);" value="0" type="checkbox"></td>
<td style="display: none;"><input name="HiddenDestinoAssociato"
value="1" type="hidden"></td>
<td class="dettaglio" style="background-color: transparent;"
align="left" nowrap="nowrap">BGD</td>
<td class="dettaglio" style="background-color: transparent;"
align="left" nowrap="nowrap"> BANGLADESH </td>
<td class="dettaglio" style="background-color: transparent;"
align="left" nowrap="nowrap">19800101</td>
<td class="dettaglio" style="background-color: transparent;"
align="left" nowrap="nowrap">20371231</td>
<td class="dettaglio" style="background-color: transparent;"
align="left" nowrap="nowrap"><select style="background-color:
transparent;" class="dettaglioEditabile" name="Servizio" id="Servizio"
title="Tipo Servizio"><option value=""> </option><option
value="B">Entrambi</option><option value="F">Fisso</option><option
value="M">Mobile</option><option value="I">Inma</option> </select>
</td>
<td style="display: none;"><input name="HiddenServizio" value="F"
type="hidden"></td></tr>

<script language="JavaScript">setCheckCodDest();</script>

</tbody></table></td></tr><tr><td align="left"><table class="tabella"
align="center" cellpadding="0" cellspacing="0" height="20"
width="600"><tbody><tr><td align="center"><font class="paginazione">(10
records)</font></td></tr></tbody></table></td></tr></tbody></table>

</form>

</td>
</tr>
</tbody></table>


</body></html>

/////////////////////////////////////////////////////////////////////////////////////////////////////
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top