Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

check if jQuery UI is loaded [duplicate]

Possible Duplicate:
Testing if jQueryUI has loaded

How to check if the jQuery UI extension library to jQuery is loaded on the page?

like image 538
vsync Avatar asked Nov 08 '11 15:11

vsync


2 Answers

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

Should work.

See also this SO post.

like image 95
Brad Christie Avatar answered Oct 01 '22 03:10

Brad Christie


Can check:

$.ui 

Or get the version:

$.ui.version 
like image 37
mikeycgto Avatar answered Oct 01 '22 03:10

mikeycgto