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]
- Limit number of Widgets in Sidebars
- How to load Widget javascript + css files only if used?
- check if registered sidebar is active & has widget content
- How to use wp_dequeue_style() for style enqueued in WP_Widget class
- Programmatically edit the text of a widget
- Create a Widget Area in the Navigation Bar for the Genesis Theme Framework?
- Widget options get
- Custom Menus, Widgets & Conditional Statements
- Dynamic widgets
- How do I stop a widget from displaying on mobile site?
- Converting a WordPress widget to a block
- Change recent posts widget title
- Adding a character counter to the excerpt metabox
- Can’t load a class into WordPress post editor’s content field
- Widget modifications in a child theme
- Is there a way to extend the default image widget into a new custom widget and add additional fields to it?
- Conditional Tags Based on Previously Viewed Posts
- How can I inject options into an select tag inside the widget form?
- Widget without DIV wrapper
- Widgets not displaying since 4.3
- Custom widget with WYSIWYG
- Limit number of widgets in widget area
- How can I add an author-box below a post?
- Override WordPress Widget CSS Classes?
- displaying tags in a widget
- Dynamic Sidebar and XHTML Validity?
- How to use wordpress content class?
- How to use get_results() in widget front end?
- How to best include widget area just on homepage?
- Different widgets in sidebar on sub-children pages?
- Can the qTranslateX-Plugin translate non-article text? [closed]
- Random sidebar/widget background
- WP 3.3 RC1 new switch_theme() method foobars sidebars
- recent comments filter by author, page, category
- wp post_tag change minlength
- How can I add a widget area to the top of the Dashboard?
- Can’t Target a Widget’s Elements using jQuery
- How do I enable the admin form for a custom widget that is called in a sidebar template, not to widget area?
- 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
- Need two sidebar (right and left)in Twenty Seven theme
- How to add styling and script to a custom widget plugin
- Fatal Error (Call to a member function… ) on production site, but not development site
- conditional widget title
- Add Social Media icon widget to customizer
- Change Widget that display posts from categories to tags
- Create a widget to display image and Title?
- How add short description Featured Products or Related Products
- JQuery multiple toggle values
- How to remove calendar widget?
- twenty twelve theme widgets not working
- I am not able to enable jQuery in theme settings
- Problem on register/login widgets
- Widget block editor: Unable to collect checkbox values inside widget update() method
- jQuery datepicker not showing on admin menu
- Theme Widget Area Defaults