check if jQuery UI is loaded

26,457

Solution 1

if (typeof jQuery.ui !== 'undefined') ...

Should work.

See also this SO post.

Solution 2

Can check:

$.ui

Or get the version:

$.ui.version
Share:
26,457
vsync
Author by

vsync

Client-side web developer (since 2005) 👍 javascript 👍 html 👍 css 👍 web design http://codepen.io/vsync/ https://github.com/yairEO?tab=repositories http://www.sudokubum.com/

Updated on July 18, 2022

Comments