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
- How to put logs in WordPress
- WordPress 3 MU for a development/stage/production site
- Updating WordPress overwriting customization tweaks – strategies?
- How to best setup for development for a two person bi-coastal team?
- How to Save Different Usermeta Fields According to User Role?
- How to extend a class in WordPress?
- Create a customizable child theme
- Custom image size not selectable in uploader
- Many users with strange names register, but don’t leave comments. Should I be afraid?
- Outputting Page Content in Two Places
- Tag description doesn’t show hyperlink
- Is there a way to rename “themes” directory name?
- Custom query with DECIMAL(5,2)
- How to remove tag cloud from taxonomy admin edit page?
- Post Thumbnail help
- Make blog secret during design construction
- Admin Panel – Custom Menu Sub-Item LINK
- Adding custom styles to dropdown in editor
- Add custom user profile field to default WordPress MultiSite registration form
- Is there a way to dynamically get to your uploads folder?
- Updating Existed RocketTheme Theme on WordPress
- how to add custom css and js on wordpress post editor directly without using .php file
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- Custom attachments styling in post view
- Create membership number for existing/new users
- URLs and navigation in custom themes
- Gutenberg block outputting JSON in front end – is this normal?
- Load MediaPlayerElement after Infinity Scroll loads more posts
- Custom link for wp_insert_post
- Blog page problems
- Installing new theme on running site
- a weird attribute on every html tag
- dbDelta not creating tables with composite keys
- How to use media upload on metabox post page without breaking TinyMCE?
- Good way to customize admin CSS?
- Add table to WordPress database
- Menu not appearing in custom theme
- How to redirect the home page to a custom page?
- User profile Pick a premade Design/theme
- Recent activity query WordPress
- Echo the Last Child Taxonomy only (not parents)?
- website is not loading home page (moving from one server to another server)
- Swap home page based on user role, Elementor layout breaking
- Customized Blog/Latest Posts Page
- Password Protection issue
- how to edit or remove the dashboard footer message [duplicate]
- Translate site in own text-language [closed]
- Pull A Single Post Prior To Running wp_query
- How to work around the bug which prevents custom menus from being deleted?
- How to add jquery to my custom post type wp plugin
- Create a folder if it doesn’t already exist
- How to remove the tagline from the HTML ?
- Custom table or form
- How I can add blog in my magento site?
- Getting Custom Field value in WP_Query
- Adding Telescope / Meteor App to existing WordPress site
- Help needed renaming custom post
- A Voting system for a pageants
- Customizing Additional CSS editor