[jQuery] Re: How can I change all radio buttons to yes and no?

2008-10-07 Thread Isaak Malik
Do you understand the purpose of radio buttons? You probably need checkboxes instead and you can check them all by using the below code: $(function(){ $('input[type=checkbox]').checked = true; }); On Tue, Oct 7, 2008 at 7:36 PM, Costaud [EMAIL PROTECTED] wrote: Hello, Can you please tell me

[jQuery] Re: How can I change all radio buttons to yes and no?

2008-10-07 Thread MorningZ
Quick and simple example of what's asked for http://paste.pocoo.org/show/87343/ On Oct 7, 2:08 pm, Isaak Malik [EMAIL PROTECTED] wrote: Do you understand the purpose of radio buttons? You probably need checkboxes instead and you can check them all by using the below code: $(function(){

[jQuery] Re: How can I change all radio buttons to yes and no?

2008-10-07 Thread Hi
First all the radio buttons need to have different names then $(function(){ $('input[type=radio]').attr(checked,true); }); On Oct 7, 10:36 am, Costaud [EMAIL PROTECTED] wrote: Hello, Can you please tell me how can I have all radio buttons set to yes or no? Thanks.

[jQuery] Re: How can I change all radio buttons to yes and no?

2008-10-07 Thread MorningZ
First all the radio buttons need to have different names then No, radio buttons don't as radio buttons with the same name will be grouped together where if a user selects one, then all the others with the same name will be de-selected id's on the other hand do need to be different On