The syntax is fine. WordPress doesn’t include CSS for the jQuery UI components, so you need to include it yourself. This is what Jetpack has done, and it’s why you’re able to load it from there. However this means that your plugin is dependent on Jetpack. Ideally you’d download the CSS (you can get it here) yourself and include it in your own plugin/theme, and enqueue it from there.
Related Posts:
- JavaScript Loading Screen while page loads
- Click button copy to clipboard
- How to make html table vertically scrollable
- How to make Bootstrap carousel slider use mobile left/right swipe
- bootstrap 3 navbar collapse button not working
- How to center image in carousel
- Can Twitter Bootstrap alerts fade in as well as out?
- Play/pause HTML 5 video using JQuery
- jQueryUI dialog width
- Random background images CSS3
- How to use date picker in Angular 2?
- How do I remove a box-shadow effect from an element when another element is hovered?
- Slide right to left?
- jQuery UI Datepicker not working
- Automatically decrease font size for long words
- Add `datetimepicker` to form
- Best approach for loading a sidebar Only if the screen max-width is >900px?
- Twitter Bootstrap Use Collapse in Custom Post Type
- Stylizing external SVG files with jQuery and CSS
- Gravity list field override and adding javascript [closed]
- Add a class to posts in increments of 2
- Override theme style with other CSS on a specific page
- How can I make this custom menu work?
- Remove WordPress scripts
- How to use datepicker.min.js?
- How to make an WordPress element sticky? [closed]
- Accordion scrolls page too low after clicking on the title [closed]
- show/hide div with simple jQuery script [closed]
- Superfish Menu Not Loading
- Problem Implementing parallax in header of bp-default theme
- datepicker for custom post type admin
- Is it OK combined wp-include js, jquery, css? [closed]
- Customizing the Jquery Calendar [closed]
- wp_enqueue_script jquery and jquery ui not working
- Uncaught TypeError: Object # has no method ‘datepicker’ [closed]
- jQuery Drill Down iPod Menu FOUC and Selecting Current page
- jQuery Datepicker displays wrong language until interection with the calendar
- jQuery Validation plugin and Bootstrap 4 CSS classes
- Getting click on item to open closest relevant element (popup) with jQuery
- How Do I change Markup of a link in WordPress
- jQuery for Fade Preload Causes My Site Favicon to Disappear from Tab of Browser
- Lightbox scroll page down on iPhone
- jQuery function not working in WordPress but works in jsfiddle
- Site images are fixed in front of my site content [closed]
- WP Media Uploader modal conflicts with Bootstrap modal
- :first-child applying to all links [closed]
- How to update scrollbar when using Jetpack’s Inifnite Scroller?
- Hide input field when second input field is in focus
- change the icon of a custom post type in WordPress to use twitter boostrap
- Drop Down Category Menu Not Working
- controlling the showing and hiding of the website logo
- How do I add Javascript and CSS files into WordPress?
- How to allow multiDatesPicker in wp admin post type?
- can’t make jQuery work (change image on time interval) [closed]
- jQuery datepicker not showing on admin menu
- jQuery $(this) keyword
- JavaScript error (Uncaught SyntaxError: Unexpected end of input)
- Disable button in jQuery
- JavaScript error (Uncaught SyntaxError: Unexpected end of input)
- How can I get the ID of an element using jQuery?
- How do you select a particular option in a SELECT element in jQuery?
- Installing jQuery?
- Email validation using jQuery
- Wildcards in jQuery selectors
- XML Parsing Error: not well-formed in FireFox but good in Chrome
- jQuery get value of selected radio button
- How to use radio on change event?
- How to get mouse position in jQuery without mouse-events?
- Show div #id on click with jQuery
- How to get attachment id as soon as it is uploaded through media uploader in jquery?
- AJAX call returns 0
- Extend 3.5 media uploader plugin to change button name
- Adding fields to the media uploader with jquery listeners
- adding google event tracking to links in posts
- WordPress Jquery Confliction with Plugin
- Unwanted content in website title
- custom changes removed after plugin update
- HTML editor accessing quicktag buttons
- Error when posting comment form: The error is TypeError: e[h] is not a function
- Using Javascript to detect keypress event in text editor
- videopress videos are not displayed when loading the content with ajax in a lightbox
- Bypass nonce value while trashing a post
- Set TRUE or FALSE based on a wp_localize_script option value
- I have an old version of jQuery showing up. How do I figure out where it is coming from?
- How to change background image from WordPress Gallery
- Search input area autogrow – how?
- Populating shortcode values dynamically in theme template
- Trying to Load jQuery
- Jquery contact form to send mail to admin [closed]
- Screen Options JavaScript Code
- Theme has superfish – how to add supersubs?
- jquery bookmark links
- jQuery .html rendering [closed]
- jQuery not working for media uploader
- Adding text to links when not on the homepage
- how to remove/exclude html coding from json file while export?
- Uncaught TypeError: undefined is not a function (shortcode-box)
- Group posts by weekly or monthly
- jQuery cycle thumbnails?
- Fire an event after Featured Image selection