Thread:BryghtShadow/@comment-4998377-20121110052832/@comment-1694864-20121111084302

HTML: Checkbox

Radiobutton

Checkbox output Radio1 output Radio2 output Radio3 output Radio4 output

JavaScript: function toggle_check_output(id, t) { $("#" + id + "-output").toggle(t); } function toggle_radio_output(id) { $(".radio-output").hide; $("#" + id + "-output").show; } $("#checkbox-1-1").change(function { toggle_check_output(this.id, this.checked); }); $(".regular-radio").change(function { toggle_radio_output(this.id); }); $(document).ready(function { toggle_check_output("checkbox-1-1", false);  toggle_radio_output("radio-1-1"); });