tags:

views:

56

answers:

3

On the click of a button, how can i make all the hidden radio buttons show up? Simplest way?

+2  A: 

This is a really naive and easy way to do it, depends how you're hiding your radio buttons I guess.

$("input[type='radio']").show()
Andrew Barrett
+2  A: 
$('input[type="radio"]).show();
Jeff Ober
+1  A: 

If you are hiding them with CSS display: none; or visibility: hidden; you can do the following:

$('#buttonID').click(function (){
     $('input:radio').css('display', 'block'); //or css('visibility', 'visible');
});

It would help if you tell us more about the way they are hidden.

Cheers!

Bogdan Constantinescu