Ok, so, for some reason I can’t comprehend, the answer is that the div element containing the tabs should have a class and not an id for jQuery UI to work properly, as such:
<div class="mytabs">
and
jQuery(document).ready(function($) {
$(".mytabs").tabs();
});
Just for the record, the way I enqued the scripts is:
add_action( 'admin_enqueue_scripts', 'load_my_admin_js' );
function load_my_admin_js($hook){
if( 'widgets.php' != $hook )
return;
wp_register_script( 'my_adminjs_script', plugins_url( '/adminjs.js', __FILE__ ), array('jquery','jquery-effects-core','jquery-ui-tabs'));
wp_enqueue_script('my_adminjs_script');
}
Perhaps the problem was a combination of the two points above.. Anyway, it now works
Related Posts:
- jQuery does not work in widget backend
- Elegantly using JavaScript on widget admin forms
- AJAX Contact Form Issue
- WP_enqueue_script() loads them always in wp_footer()?
- Access Customizer widget instance form
- Screen Options JavaScript Code
- jQuery “on” handler does not fire on newly inserted widgets [closed]
- keycode 13 is for which key
- Executing Javascript When a Widget is Added in the Backend
- Loading scripts only if a particular shortcode or widget is present
- 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 refresh Theme Customizer after change color inside wpColorPicker?
- How to Remove All Widgets from Dashboard?
- jQuery UI Datepicker not working
- Hook the Keydown Event in the TinyMCE Post Editor
- How do I rebind event after widget save
- JqueryUi Dialog giving Uncaught TypeError: this._addClass is not a function error
- 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
- WordPress loads whole jQuery UI library
- Trigger Submit Event when Widget is added to Sidebar
- How to Use JSON With AJAX?
- Completely disabling widgets
- Add confirmation popup on “Move to Trash”
- How do I get my page to load the jQuery UI Effects library?
- 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
- JQuery not working on WordPress Admin page [closed]
- Run JS after widget settings are saved?
- Widget code is not working on WordPress.com Hosted Blogs
- WP Admin missing icons, numerous JavaScript errors, but only when SCRIPT_DEBUG is false
- Include chat (HTML, js, css) in all pages of WordPress
- How to determine the number of widgets contained in a sidebar via customizer JS
- Can’t load a class into WordPress post editor’s content field
- 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]
- splitting the URL using jQuery
- List of JS Events for Widgets?
- Drafts widget for admin page
- Rhyzz Repeatable-fields javascript in php and wordpress
- How do I pass the id of my widget to javascript in the form function?
- 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
- Using Foundation 5 in WordPress Administration Area
- Unable to load “wpColorPicker” on theme customize page
- wordpress widget missing jquery
- Uncaught TypeError: jQuery(…).slider is not a function
- jQuery UI tab does not work in the plugin page
- 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
- Is there a default way in wordpress to create a overlay in the dashboard?
- AJAX Success Function using JS substr() fails in WP 4.1 vs 4.0
- Issue with checked() echoing on to page
- Jquery checkbox -show posts with checked tags
- A carousel slideshow plugin in JavaScript
- wp post_tag change minlength
- How to properly enqueue jQuery knob on WordPress without conflict?
- jQueryUI draggable doesn’t work in WordPress plugin
- WordPress live search and filter
- why does so many javascript libraries are loaded along with my website?
- Dashboard controls have all stopped working
- Render repeatable widget fields properly with Backbone.js
- Widget outputting JS as plain text
- Simple SCript Not Displayed in WIdth
- Loading scripts only if a particular shortcode or widget is present
- Handling dozens of sidebars
- Slider from different widgets
- Widget Admin page and Javascript enqueuing
- Widget stuck at particular point when dragging to bottom
- WordPress Javascript Widget jQuery Dependency Issue
- Widget Areas Still Appearing in WP ADMIN When They Shouldn’t
- Using AJAX in WordPress Widget
- Uncaught TypeError: undefined is not a function (shortcode-box)
- List.js inside WordPress widget
- Custom tabs widget don’t work in google chrome, is blocked, do not change the tabs. Why?
- Multiple widgets in wordpress
- I add some js files from a plugin to a specific location
- Add text to Text Widget using Javascript
- Ajax in Plugins: returns the whole page
- Admin panel: Javascript not loading properly. Cannot edit pages/posts [closed]
- Using AJAX in a Widget to Sort items [closed]
- Widget won’t work due to old JavaScript? Any ideas how to make it work? [closed]
- Adding jquery using php function
- Prevent posts from being published if the ‘Uncategorized’-category or no category is selected
- How react js and other Javascript Technologies works on WordPress plugin?
- jQuery datepicker not showing on admin menu
- document.getElementByID is not a function
- Using jQuery .after inside loop
- Overriding inline !important CSS with Javscript code snippet with media query