<script> function opcoes( sId ) { var sDiv = document.getElementById( sId ); if( sDiv.style.display == "none" ) { sDiv.style.display = "table-cell"; } } </script>
onclick="opcoes('tipo_pagamento');"
<tr id="tipo_pagamento" style="display: none;"> <td width="151" height="0" align="left" class="texto_4a" style="padding-left:5px">Carteira:</td> <td height="11"><input name="carteira" type="text" class="input" id="carteira" size="40" /></td> </tr>
Atualmente funciona se eu colocar em um link ou checkbox e tals, porem preciso do seguinte, tenho o select:
<select name="tipo_pagamento" class="input" id="tipo_pagamento" style="width:254px;"> <option selected="selected" value="">Selecione um tipo</option> <option value="deposito">Depósito/Transferência</option> <option value="boleto.bb.php">Boleto Banco do Brasil</option> <option value="boleto.cef.php">Boleto Caixa E. Federal</option> <option value="boleto.itau.php">Boleto Itaú</option> <option value="boleto.hsbc.php">Boleto HSBC</option> </select>
E queria que quando uma das opcoes que tem "boleto" la fosse selecionada ele exibisse a celular, seria tipo assim(se funcionasse claro ):
<option value="boleto.hsbc.php" onclick="opcoes('tipo_pagamento');">Boleto HSBC</option>
é possivel fazer isso?