The question is phrased in a very confusing way but I think you are asking how, from javascript, to set whether a radiobutton is checked or not You can set myRadioButton. Checked = false or myRadioButton. Checked = true.
The question is phrased in a very confusing way but I think you are asking how, from javascript, to set whether a radiobutton is checked or not. You can set myRadioButton. Checked = false; or myRadioButton.
Checked = true.
You are near to what I am looking for. How do I do this? If the radiobutton is checked, onclick uncheck it and vice versa?
– DiegoP. May 31 at 17:35 toggling a boolean value is trivial: myRadioButton. Checked =!myRadioButton.
Checked; – Robert Levy May 31 at 17:37.
This is an abuse of radio buttons and subverts their purpose. Instead of breaking the user interface to fit your needs, simply add in some conditional logical to exempt your special checkbox from the styling rules. In pseudo-code: if (checkbox.Name!
= 'exempt me') { apply_style(); } else { do_something_special(); }.
1 good solution with a great recommendation. – pixelbobby May 31 at 17:31 This is not what I am looking for. I am using a jQuery code not made by me.So I do not really know how to modify that code.
And also I made my question simpler, but that is not so simple. I just need to know how to check/uncheck a radio button. Nothing else.
– DiegoP. May 31 at 17:35 @diego: $('#yourradiobutton'). Attr('checked', false); But again, this is breaking user interface conventions.
In real world terms, you're trying to force a door knob to control a ceiling lamp. Might make sense to you, but is going to confuse everyone else. – Marc B May 31 at 17:36 Sorry but I am still confused.
As I see this code will only uncheck the radio button. But what happen if the user wants that checked? How do I fire an onclick event on it?
Sorry but as you may understand I am not a javascript expert... – DiegoP. May 31 at 17:40 $('#yourradiobutton'). Click(function() { this.
Checked =!this. Checked; }); will just toggle the radio button. And yet again, this is a BAD design decision.
– Marc B May 31 at 17:43.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.