Jump to content


WillCruds

Member Since 31/03/2011
Offline Last Active 09/05/2011, 13:11
-----

Posts I've Made

In Topic: Incompatibilidade De Browser

12/04/2011, 13:23

Procure na net algo sobre BrowserCam para verificar o incompatibilidade de browser ou htmlhelp para erros no HTML.

In Topic: Erro Ao Recuperar Os Valoes Do Radiobutton Selecionado

31/03/2011, 11:34

Essa função é mais simples...

<script>
    function checaRadio(val){
        alert (val.value);
    }
</script>


E adicionaria no input do radio o onclick:

onclick="checaRadio(this)"

In Topic: Resgatar Valores Do Radio Button Para Variavel

31/03/2011, 11:21

Zap, sou novato mas vou tentar ajudar...

Tente no final da sua função adicionar esse código e veja se ele retorna o valor do radio.

alert (obj.value);


Vai ficar assim:


function setChecks(obj){ 
//increment/decrement checkCount 
if(obj.checked){ 
checkCount=checkCount+1 
}else{ 
checkCount=checkCount-1 
} 
//if they checked a 4th box, uncheck the box, then decrement checkcount and pop alert 
if (checkCount>maxChecks){ 
obj.checked=false 
checkCount=checkCount-1 
alert('teste')
} 
alert (obj.value);
}

IPB Skin By Virteq