C
C
Chaly952018-03-20 16:16:46
css
Chaly95, 2018-03-20 16:16:46

How to make a secondary checkbox appear after the main checkbox is selected?

Good afternoon!
there is such a page with a fitness.ad-rocket.com.ua/schedule class schedule .
The Events Schedule WP Plugin was used for the schedule ( link )
In the schedule, there are categories and subcategories of activities, I want to make the subcategories appear only after the main category is selected.

For example, on the fitness.ad-rocket.com.ua/schedule
page there are Pilates classes, this is the main category.
And pilates parent is a subcategory.

How to make pilates parent appear only when Pilates is selected?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-03-20
@chaly95

We put the hide class on the parent, write to it.hide {display:none;}

$('#some_select_id').on('change',function(){
$('#some_parent_select_id').removeClass('hide');
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question