Found a solution to it though, pretty simple
<script type="text/javascript">
jQuery(document).ready(function($) {
var dw_match_display = $('#dw_match_display');
dw_match_display.hide();
if ($('#dw_complete').prop('checked') ) {
dw_match_display.show();
}
$( '#dw_match_details' ).on( 'change', '#dw_complete', function() {
dw_match_display.hide();
if ( $(this).prop('checked') ) {
dw_match_display.show();
}
});
});
jQuery(document).ready(function($) {
$( '#dw_match_display' ).change();
});
</script>
Related Posts:
- Modified wp.media.view.Settings.Gallery in Backbone JS, but editing doesn’t work
- Make Custom Metaboxes Collapse by Default
- Check for and enforce unique value in user-entered custom meta field in WP Admin
- Add ‘Right Now’ widget to custom dashboard
- How can I defer these JS files?
- The Best Way to always load the newest version of 3rd party code
- Using Fullscreenr with a wordpress blog – weird bug
- I’m using add_meta_box() but want to include TinyMCE editor *and* Media Uploads for each box
- window resizing problem
- Understrap child theme JS not working in custom-javascript.js file
- custom meta box for page default template
- Data won’t save if metabox within conditional in admin. What am I missing?
- Let author add field to metabox by pressing a button
- Meta Tags by Meta Box
- problem saving/ retrieving custom meta with wp alchemy metabox
- Problem with custom function from jQuery slider tutorial
- WordPress 3.1.2 Bug: add_theme_support() and video post format registering twice
- Select input in metabox not updated
- Multiple header style under meta box
- Bootstrap slider not working
- WordPress core jquery version file not loaded?
- Adding a drop-down (select tag) option under Menu Settings in WordPress Admin
- Perform javascript when an input in Customizer is selected/focused?
- Change meta-box title- “LearnDash Quiz Settings” to “Quiz Settings”
- Embedded Options in a Custom Metabox
- WordPress Customizer: Check for value of CSS selector and replace it
- Execute function with jQuery if widget added or removed?
- duplicate featured image functionality in custom meta box
- How to submit form data in the same page in WordPress without reloading the page?
- How to add custom Author Info Box to blog posts “only” and NOT custom post templates
- issue with saving custom metaboxes fields
- Getting a jQuery library to work in WordPress & Avada
- after checked the checkbox in backend, dont show social link on frontend
- Change post template the proper way
- Customizing the built-in Media Playlist
- Get a different size of Image thumbnail while working with custom metabox
- Search results load individual post in slide out div
- Need Advice to Working with Custom Post Meta
- Adding css and js to a blank page created with custom template
- why jquery is not loading in wordpress page?
- Prevent posts from being published if the ‘Uncategorized’-category or no category is selected
- Custom maintenance page
- How to customize the default HTML for WordPress Attachments
- How can I integrate pages written in something other than PHP?
- Custom field values in permalink
- Custom protected password page with ACF
- Customize in category page
- Custom Dashboard Home Screen Options
- How to get WordPress to accept the tag in articles (or other alternatives)
- How do I change the default admin color scheme in MP6
- dynamic external javascript generated using php
- What’s the proper way to use a custom table? [closed]
- How can a single line in a blog post take down my server?
- Adding a Table to the wordpress database
- Integrate WordPress into existing website
- how can I change the background color of all posts on my server?
- Turn off redirect to canonical domain (or host website on any hostname)
- CSS to remove “comments count” icon from main page [closed]
- Custom title, Bones theme
- How to change the category url jusy show /category/%category_id% in wordpress?
- How can I display a PHP foreach loop’s answers by AJAX
- No shipping method has been selected [closed]
- Child Theme with multiple css files
- Organizing the position of widgetized areas in the backend
- Why the css in twenteenfourteen-child theme take no effect?
- Is there a way to create a meta box that can be added multiple times to a post dynamically?
- add custom content to appearance/widgets screen
- css media query question [closed]
- How to create a page /1 using ?
- Open “Visit site” in a new window?
- theme customizer – can a single option pass multiple values?
- Separate header for static home page and posts page
- Pagination with custom field
- What’s the right way to share data between widgets?
- Custom Taxonomy Sort For a Custom Query
- Where to upload my new custom ShortCode in Separate .php file?
- kitchen sink not working
- Is it possible to auto sharing post on social network from specifc categories or tags
- wp_insert_post custom taxonomy multiple Category not added
- Get custom text if in Category
- Conditional Logic on CF7 dropdown options
- Can’t upload format files on media library
- Remove Title and White Space in Twenty Twenty theme
- How to show Term ID beside Name Category with wp_dropdown_categories()
- WordPress Performance and bulk edits
- How to have differents sites share the same tables of DB?
- How to add particular attribute of product in shop as well as home page
- Delete page titles
- Duplicate Header and Footer
- Send email notification when post type product is publish from pending status
- Custom login doesn’t stay
- Smarter Document Management links between three WordPress sites sought
- data retrieval presents last set of data
- Accountless password generation
- Creating a Treeview Listing of a Directory
- Create a google friendly header with text and logo
- Disallow “contributors” to edit their own posts once they’ve been set to “Pending Review”
- insert autofocus in a custom taxonomy form
- display my pages html
- Post interior margin in twenty eleven theme