29
I would like to know which Checkbox is checked with Jquery.
To catch all the checks I made the following code
var checado=false;
$(obj).find("input[name='analisar']").each(function(){
if($(this).attr("checked")=="checked")
checado=true;
});
if(!checado){
alert("Deve ser selecionado uma opção entre Aprovado/Desaprovado!");
return false;
}else....
But it is returning whenever none is selected. How do I see if at least one is selected.
Example: http://jsfiddle.net/lionbtt/AGbCY/
If you can also provide HTML or direct a jsfiddle with your attempt it makes it easier to give an answer
– Emerson Rocha