Skip Navigation

[Resolved] Split: Number of item for each filter – Can I set default “on” all checkboxs in filter section. and if my customer want define only some

This thread is resolved. Here is a description of the problem and solution.

Problem:
Split: Number of item for each filter - Can I set default "on" all checkboxs in filter section. and if my customer want define only some

Solution:
If you want to display checkboxes filer with few custom options set as selected by default. You need to add custom javascript/jQuery code to display your desired checkboxes options as checked.

You can find the proposed solution, in this case, with the following repl
https://toolset.com/forums/topic/split-number-of-item-for-each-filter-can-i-set-default-on-all-checkboxs-in-filter-section-and-if-my-customer-want-define-only-some/#post-922944

Relevant Documentation:
=> https://stackoverflow.com/questions/426258/setting-checked-for-a-checkbox-with-jquery
=> https://stackoverflow.com/questions/15044340/jquery-set-checkbox-checked

This support ticket is created 6 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by Leonardo 6 years, 5 months ago.

Assisted by: Minesh.

Author
Posts
#922942

Can I set default "on" all checkboxs in filter section. and if my customer want define only some

#922944

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - as I understand, you want to display checkboxes filer with few custom options set as selected by default. You need to add custom javascript/jQuery code to display your desired checkboxes options as checked.

Following links may help you:
=> https://stackoverflow.com/questions/426258/setting-checked-for-a-checkbox-with-jquery
=> https://stackoverflow.com/questions/15044340/jquery-set-checkbox-checked

#922980

Thanks a lot