Try this selector:
if ($('div#category-all ul.children input:checked').length) {
// at least one of the child categories is selected
}
Related Posts:
- Checklist of selected categories
- Why aren’t sub-categories nested after creating post in the WP Admin?
- Use tag interface for hierarchical taxonomy?
- Moving Categories submenu to Media, but still opens Posts menu
- Why adding Categories does not auto refresh in Backend while using my custom theme?
- Remove “Parent” Selection When Adding/Editing Categories?
- How to stop wordpress from showing the selected category on top of others in the category selection?
- Render Selected Categories in Admin Edit Post Screen differently
- Add Post Screen Keep Category structure
- How can I enable a TINYMCE rich text editor in the admin interface?
- How to filter out Categories for specific post types on WordPress Admin?
- Automatically exclude categories from metabox based on title
- WordPress admin categories sort show is wrong
- Category control subcategories
- WP admin broken. Not saving catgories or adding categories to menu
- Admin comments and user restrictions
- Admin: Navigation Menus do not show empty categories/taxonomies in the list’s search tab
- add slug beside name in Admin Category Checklists
- Using in ‘category_name’ in ‘$query->set();’?
- Change Default Content when Creating a Post based on Previous Category Choice
- When creating a new product, auto assign it to all custom taxonomy woocommerce
- Limit post top level categories to one
- Using a template page parent breaks page
- Anyway to hide a Category in the Categories section when adding/editing a post in WP Admin?
- Show parent-child relationship for categories in the wordpress admin
- why is the delete option missing from just one category?
- Remove category number fill
- Limit authors on specific catogories
- How To Find Out WordPress Category Table in MYSQL?
- Add custom field to Category
- Get current category details the user is currently on in category.php
- Does the ‘cat’ argument in query_posts fetch posts from subcategories as well as the given ID?
- Get Default Post Category From Settings
- Are Categories, Tags and Custom Taxonomies any different in regards to SEO?
- Display list of Sub-Categories and the posts they contain, within one main Category
- Create subdomains for tags and categories
- Categories – create a new separate set right after the default?
- How to get this only in small letters (lowercase)? [closed]
- How to totally get rid of Category in my blog?
- Is there a function to cause empty categories not to show in menus?
- How to select product category while adding new product in woocommerce? [closed]
- How do I count how many top level categories there are?
- Removing category base form links messes up the parent-child behavior
- display most popular tags of category?
- Exclude category from loop not working
- How to list only child categories?
- Want to hide some categories from the categories meta box in the post editor for the two specific user roles
- Getting categories id for all products in cart
- Cannot add / edit categories to a post anymore
- List archived posts by subcategory
- What’s the Simplest Way to Override/Rewrite the %category% Permalink Structure Tag?
- Show Different Custom Menu on Different Category Pages
- Show archives by year from just one category
- How to get the id from the custom category?
- Combining post categories and link categories?
- Category being displayed without base parmalink
- wordpress sub-category ( lowercase letters + non-latin characters ) = 404
- WP didn’t redirect to canonical category URL
- Customize WordPress widget – Product Category
- Display categories with child category separated by letter
- Set colors depending on category
- get_terms function not returning anything
- Getting All Post From Specific category in wpdb
- Single.php Category Post Count
- Jigoshop – only displaying 10 products
- Is there a way to only show Custom Meta Data on single posts from certain catagories
- Grouping post-types in loop
- display a widget on specific category and its sub categories
- So my theme doesn’t have a category.php file
- Custom page category taxonomy 404
- How to hide category
- How to remove the category from post slug
- Assign a custom post to a custom taxonomy based on custom field value
- How can i show categories of custom post
- Posts of specific category on page and excluded from index.htm
- How can assign posting to Subscriber to specific category?
- How to show only child categories using the_category();
- Exclude posts without category from loop
- remove url from categories
- how to style show_count in wp_list_categories()
- Why in the e-mail notification about a new post published, the category of the post is always: Uncategorized
- Page category filter in admin dashboard
- How to get immediate children of a ‘term’ parent id through ‘get_terms’?
- ADD DYNAMIC attribute for category to accordion
- Get_term_meta() does not work with pre_get_posts()
- Unable to add multiple categories to a post in WordPress
- How to display custom fields as table in Woocommerce
- make color of headline depend on category?
- How can I exclude a particular category from my WordPress Page 1 and Page 2?
- Menu with category 2 category combined
- how to display categories for a specific post?
- Add category links?
- show posts found in multiple categories via category_name query string?
- get categories the post was in and just been removed from
- Display last postings of 5 categories on homepage
- How to enable admins/editors to set a featured image for specific category?
- Category that can hold only specific number of post
- How to add the sidebar in all category page
- Having Trouble With get_category_by_slug In a Custom Function
- Quick Edit on taxonomy names results in error