MyBB Community Forums

Full Version: [MyBB ACP] How to hide/show based on checkbox
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey,

I'm wondering myself how to use show/hide in a plugin based on the value of a checkbox.

For example, my checkbox is in a table like this:
$form_container->output_row('Test <em>*</em>', 'This is just an easy test thingy for MyBB', $form->generate_yes_no_radio('test_sec', $input['test_sec'], true, array('id' => 'test_sec_yes'), array('id' => 'test_sec_no')), 'test_sec');

If the value clicked to 'yes', how to display an the following defined rows? I know it's something with jquery/javascript, but I can't get it working on the ACP of MyBB.

Is there anyone who has experience with this?

Thx,
Tankey
ahh great! got it working! Big Grin thx mate
Give pavemen a rep-- he was the one who told me the answer.