Radio button visibility

When a button is clicked, how can I open all hidden radio buttons? Easy way?

+2


source to share


3 answers


$('input[type="radio"]).show();

      



+2


source


This is a really naive and easy way to do it depends on how you hide your radio buttons I guess.



$("input[type='radio']").show()

      

+3


source


If you hide 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 will help if you tell us more about how they are hidden.

Hooray!

+1


source







All Articles