[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3824: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3826: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3827: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3828: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
Next Framework • Ver Tópico - Como usar "onclick" em campos tipo SELECT-ONE-RADIO
Página 1 de 1

Como usar "onclick" em campos tipo SELECT-ONE-RADIO

MensagemEnviado: Dom Out 09, 2011 9:06 pm
por jtakata

Re: Como usar "onclick" em campos tipo SELECT-ONE-RADIO

MensagemEnviado: Sáb Out 15, 2011 5:58 pm
por rogelgarcia
Não é possível associar eventos diferentes para cada radio. Terá que associar o mesmo a todos. Poderá pegar o valor selecionado com this.value e saber se está selecionado com this.selected

Exemplo:

<t:property name="simNao" type="SELECT-ONE-RADIO" includeBlank="false" onclick="alert('valor: '+this.value+' selected: '+this.selected) " ...

Se quiser eventos diferentes para cada opcao, terá que fazer cada opcao manualmente e entao colocar o valor desejado

Re: Como usar "onclick" em campos tipo SELECT-ONE-RADIO

MensagemEnviado: Sáb Out 15, 2011 6:41 pm
por jtakata
É...
Acabei fazendo manualmente.
Mas vou testar a sua dica assim que possível.
Muito obrigado e abraços.
Jorge