Este es el código que tengo:
Cita:
Gracias <script languje="javascript" type="text/javascript">
function Mostrar(elemento)
{
if (elemento.value==''){
document.getElementById("Titulo").style.display="n one";
}else{
document.getElementById("Titulo").style.display="i nline";
}
}
</script>
<!--<td>Observaciones</td>
<td><input type="text" name="textobhds" value="<?php echo $varo3?>"/></td>-->
</tr>
<tr>
<td bgcolor="#CE21D6">Ventas TPV 1</td>
<th width="35" bgcolor="#CE21D6"><label for="select2"></label>
<select name="select2" id="select2" onChange="Mostrar(this)">
<option value="">Selecciona Datafono</option>
<option value="TPV B. Santander" <?php echo $varfp?>>TPV B. Santander</option> <!--prueba "value="TPV B. Santander"" esto lo quité-->
<option value="TPV BBVA" <?php echo $varfp1?>>TPV BBVA</option>
<option value="TPV La Caixa" <?php echo $varfp2?>>TPV La Caixa</option>
<option value="TPV Abanca" <?php echo $varfp3?>>TPV Abanca</option>
<option value="TPV B. Popular" <?php echo $varfp4?>>TPV B. Popular</option>
<option value="TPV B. Sabadell" <?php echo $varfp5?>>TPV B. Sabadell</option>
<option value="TPV B. Caixa Geral" <?php echo $varfp6?>>TPV B. Caixa Geral</option>
</select></th>
<th width="75" bgcolor="#CE21D6">
<span id="Titulo"style="display:none">
<!--<th width="75">-->
<input type="number_format(number, 2, ",", ".")" name="texttpv1" id="texttpv1" value="<?php echo $var4?>"/>
<!--</th>-->
</span>
</th>
function Mostrar(elemento)
{
if (elemento.value==''){
document.getElementById("Titulo").style.display="n one";
}else{
document.getElementById("Titulo").style.display="i nline";
}
}
</script>
<!--<td>Observaciones</td>
<td><input type="text" name="textobhds" value="<?php echo $varo3?>"/></td>-->
</tr>
<tr>
<td bgcolor="#CE21D6">Ventas TPV 1</td>
<th width="35" bgcolor="#CE21D6"><label for="select2"></label>
<select name="select2" id="select2" onChange="Mostrar(this)">
<option value="">Selecciona Datafono</option>
<option value="TPV B. Santander" <?php echo $varfp?>>TPV B. Santander</option> <!--prueba "value="TPV B. Santander"" esto lo quité-->
<option value="TPV BBVA" <?php echo $varfp1?>>TPV BBVA</option>
<option value="TPV La Caixa" <?php echo $varfp2?>>TPV La Caixa</option>
<option value="TPV Abanca" <?php echo $varfp3?>>TPV Abanca</option>
<option value="TPV B. Popular" <?php echo $varfp4?>>TPV B. Popular</option>
<option value="TPV B. Sabadell" <?php echo $varfp5?>>TPV B. Sabadell</option>
<option value="TPV B. Caixa Geral" <?php echo $varfp6?>>TPV B. Caixa Geral</option>
</select></th>
<th width="75" bgcolor="#CE21D6">
<span id="Titulo"style="display:none">
<!--<th width="75">-->
<input type="number_format(number, 2, ",", ".")" name="texttpv1" id="texttpv1" value="<?php echo $var4?>"/>
<!--</th>-->
</span>
</th>