
03/11/2008, 12:44
|
 | | | Fecha de Ingreso: diciembre-2006 Ubicación: Merida Yuc Mexico
Mensajes: 36
Antigüedad: 18 años, 4 meses Puntos: 0 | |
Respuesta: Pasar parametros de radiobuttton para enlace href Hola hoberWilly...
Porque no intentas crear tus href al vuelo?
Prueba Hacer esto:
Alo mejor necesitas ponerle IDs a tus link para tomarlo
<input type="radio" value="xx-1" onclick="lastRadioSelec(this.value)"/>
<input type="radio" value="xx-2" onclick="lastRadioSelec(this.value)"/>
<input type="radio" value="xx-3" onclick="lastRadioSelec(this.value)"/>
<input type="radio" value="xx-4" onclick="lastRadioSelec(this.value)"/>
....
(y cuantos mas radio buttons tengas)
ahora en javascript:
<script languaje="javascript">
function lastRadioSelec(valor)
{
TuLink = document.getElementById('tuLink');
TuLink.href = "consultarPedido.php?idFactura=" + valor;
}
</script>
Pues asi estaras pasando el valor radio button seleecionado y cambiaras dinamicamente el href de tu link...
espero te sirva.
saludos . . |