After much pulling of hair here is the answer should anybody require it:
(function($){
$(function() {
$('#page_template').change(function() {
$('#postdivrich').toggle($(this).val() == 'page-child.php' || $(this).val() == 'default') ;
}).change() ;
}) ;
})(jQuery) ;
Related Posts:
- Edit single attachment on click (WP-admin)
- Hide metabox dependant on page template chosen
- Override default options in plugin metaboxes
- Creating Ajax backend for Specialised Page Template? Should admin-ajax.php be used?
- WordPress: Sortable Metabox Fields Not Saving Position
- How to reload a select box of posts dynamically?
- Add X meta box inputs based on form at top of meta box, how to do it right?
- Unbind postbox click handler
- Disable collapse of admin meta boxes
- jQuery Ajax() doesn’t work when the page is accessed as a WordPress template page
- Script dependencies for post.js
- How to Use JSON With AJAX?
- validate a metabox based on the category that is selected
- Admin wp_ajax hook returning 0
- Is it safe to include a javascript file in a template’s php file?
- Adding a character counter to the excerpt metabox
- php ajax problem – weird 301 responses!
- WP Admin missing icons, numerous JavaScript errors, but only when SCRIPT_DEBUG is false
- Returning content via jQuery without footers on admin pages
- Can’t load a class into WordPress post editor’s content field
- Unable to uncheck checkbox with jquery in wp admin
- jQuery is missing in wp-admin
- Using WP_Query to grab custom meta values, foreach to json object
- Bypass nonce value while trashing a post
- wp_dequeue_script not working in my plugin
- How to isolate code to the post edit screen
- Good Solution for Adding jQuery Tabs Anywhere Within WordPress?
- Why doesn’t my very simple jQuery work?
- delete post meta by AJAX
- Insertng HTML and jQuery into a page that uses the Defaut template
- Admin side jquery is not loaded
- Using Foundation 5 in WordPress Administration Area
- Adding URL of PDF from Thickbox in a Meta Box
- Notice-Updated div moving around unprompted
- Adding JavaScript file in Admin Panel
- Applying jquery to WordPress admin edit.php
- Is there a default way in wordpress to create a overlay in the dashboard?
- Screen Options JavaScript Code
- JQuery load php – php file without the template
- Why does my media selection script write to ONLY the first input field?
- Dashboard controls have all stopped working
- Is not using admin-ajax to ajax submissions okay?
- Disable drag metaboxes, create many functions using js not to work!
- Uncaught TypeError: undefined is not a function (shortcode-box)
- Customize wp-admin form custom fields
- TypeError: $ is not a function Error using parallax effect in WordPress Template [duplicate]
- jQuery .change() Event Bubbling in WP Admin
- Hook with jquery script is not working in wp-admin [closed]
- jQuery Add/Remove Classes Not Working
- jQuery datepicker not showing on admin menu
- How to set time delay in javascript
- Disable button in jQuery
- wait() or sleep() function in jquery?
- Ajax Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource
- Enable & Disable a Div and its elements in Javascript
- Which selector do I need to select an option by its text?
- Check if inputs are empty using jQuery
- Taxonomy dropdown metabox in the back-end
- CSS not pulling in for jQuery UI dialog
- Uncaught TypeError: Cannot read property ‘replace’ of undefined
- Is it worth updating WP admin to jQuery 1.5?
- Proper way to load a single post via Ajax?
- Ajax not firing properly using Firefox, but works in Chrome
- Get ACF value in external jQuery document
- Adding jQuery dependency prevents my script from enqueuing/loading
- Gravity Forms not loading under https, jQuery is not defined
- How to add meta boxes to Pages
- Automatic jQuery accordion from header tags
- How to deregister a jquery version for a specific page?
- How to undo deregister script and use local versions?
- Frontend Post with JQuery AJAX to Php Issue
- show/hide div with simple jQuery script [closed]
- Searching multiple tags and adding jQuery dependant script onto page template?
- Trouble adding inline style after jQuery in the footer!
- $.browser Undefined Seemingly Causing Faulty Page Display
- I’m trying to set the cookie to my site to button on click action ,it is working on when user logged in .When user logged out it’s not working
- Invoking Jquery in a Plugin
- registering new jQuery after wp_deregister_script() not working
- Displaying an image’s alt title and caption inside a fancybox window. Working, but showing the same alt and caption for each image
- jQuery UI tab does not work in the plugin page
- Required radio button does not validate in form, when clicked through Javascript/jQuery
- Need workaround for insecure XMLHttpRequest endpoint request
- Load different post_thumbnail for smaller window width (jQuery,WordPress)
- Duplicate “default” form with jQuery
- Checking length of string in an admin area field onblur with jQuery
- Load php file with jquery in single.php
- wp post_tag change minlength
- Submitting form from input[type=file] dialog box
- How to use custom page for all posts with custom url, call another directory?
- WordPress not showing jQuery
- Lightbox scroll page down on iPhone
- Multiple recaptcha validation
- Jquery scroll animate offset asynchronous
- Enqueue javascript that inserts custom php widget into jQuery-constructed div
- Retrieve customizer value using ajax or customizer api and print the value in theme
- Sorting UL Listing Within the TinyMCE Visual Editor in WordPress
- My .js file is getting a 404
- how to display post in jquery slider and carousel
- Carousel Hover Image
- Fire an event after Featured Image selection