Off topic here, but for the sake of solving your problem:
For delegated events, the on
part should be
jQuery(document).on('click','.toggleExtras', function(e){
Related Posts:
- jQuery UI inside widget on admin page
- changing wp-admin/widgets.php
- Enabling jquery when dragging available widget to sidebar area
- WordPress 4.8: Using multiple WYSIWYG-Editors with media inside of Widgets how to?
- How to Remove All Widgets from Dashboard?
- How do I rebind event after widget save
- How to listen to color changes on the color picker?
- How can I delete all inactive widgets?
- Ban certain widgets from certain sidebars
- Widget “Save” resetting jQuery hidden fields
- jQuery does not work in widget backend
- Trigger Submit Event when Widget is added to Sidebar
- Completely disabling widgets
- Elegantly using JavaScript on widget admin forms
- How to enable “shift-click to edit this widget” functionality on a custom widget?
- add_page_menu to make shortcut to widgets
- Using jQuery in widget development
- cannot drag and drop widgets since wordpress 3.2.1
- Remove/Add widgets from/to the Available Widgets pool
- AJAX Contact Form Issue
- WP_enqueue_script() loads them always in wp_footer()?
- Add field to dashboard to update embedded URL on homepage?
- Dashboard Widgets – Add Admin Page With Same Functionality
- Wrap the widget content with a div and get the widget title outside? [closed]
- Drafts widget for admin page
- Access Customizer widget instance form
- How i can widget ID get after drag for wordpress with jquery?
- Grabbing how Many Posts by Month for a Dashboard Widget
- Validating widget’s configuration data on Admin page
- wordpress widget missing jquery
- Custom widget is not appearing in the admin area
- How to remove Help tab and the Dashboard widget area’s empty border
- Widget page stopped loading
- Making jQuery .change() event persistent after widget save
- Issue with checked() echoing on to page
- Jquery checkbox -show posts with checked tags
- Handling dozens of sidebars
- Widget stuck at particular point when dragging to bottom
- Widget Areas Still Appearing in WP ADMIN When They Shouldn’t
- Using AJAX in WordPress Widget
- Custom tabs widget don’t work in google chrome, is blocked, do not change the tabs. Why?
- Multiple widgets in wordpress
- Using AJAX in a Widget to Sort items [closed]
- why the code html apear in this widget in footer
- Widgets are not displaying in my theme
- An archive widget, coming from nowhere on my posts and pages
- how to make video autoplay in widget
- Widget title showing below widget
- Elementor or WordPress randomly adds the word “array” to my custom widget
- Widget form not displaying for media widgets in WordPress
- Can’t Target a Widget’s Elements using jQuery
- Display Login user name in Thim:login Popup widget
- Searching for a one page overview widget
- Sorting Tag Cloud by Popularity
- custom widget not saved to sidebar
- When editing in block editor, the post/article gets under the floating widgets
- Need to remove a piece of copy that appears to be in a sidebar but doesn’t show up
- How to edit wordpress widgets?
- WP renders HTML wrong when adding widgets
- Collapsible widgets [closed]
- Recently changed domain name. Home page widgets are now not in the customize menu yet still being on the page
- Many buttons not functioning in WordPress dashboard (as admin)
- Can view Social Media buttons only in the private mode – why?
- Siderbar implementation with collapsible bootstrap cards
- Loop through Widgets in sidebar using widget array number?
- Ajax call not working anymore
- My theme didn’t appear sidebar area
- Adding pagination to my theme [closed]
- Widget settings disappear after refresh
- How do I enable the admin form for a custom widget that is called in a sidebar template, not to widget area?
- Execute function with jQuery if widget added or removed?
- Before_widget won’t show up
- Accessing WooCommerce product categories before initialising widget areas
- Create a new recent post widget
- Make widget with media upload repeatable
- Why does my $instance within a custom widget return empty (undefined index)?
- How to create sidebar from “scratch”?
- Display current tag archive’s name and description in sidebar
- How to display author meta in a sidebar widget
- defined (‘ABSPATH’) false after AJAX post to other PHP-file
- Title not Emptying in a Widget
- Widget Registration Problem
- How do I add after the tag in WordPress widget?
- Reload widget with AJAX
- Function for widget titles
- Is it possible to dynamically output the name of the widgets?
- How to customize WordPress dashboard for different users?
- Creating a simple button inside of a widget
- A checkbox Option for description in Widget
- How do I add footer widgets to the StudioPress Monochrome Pro theme?
- wp_list_widget_controls() undefined
- Dashboard controls have all stopped working
- My widgets do not save
- Custom archive widget drop down menu
- How to move widget area to another section in WordPress Customizer
- Is not using admin-ajax to ajax submissions okay?
- Custom Admin Section
- How to prevent Widget from echoing to wrong position in DOM
- Search box displaying just title → Default WordPress Widget for Search Box
- Render repeatable widget fields properly with Backbone.js