Thread:Talk:JQuery/How to call Jquery in an Extension?/reply

jQuery is a javascript library, not PHP. To use it you'll need to actually run javascript.

As of MediaWiki 1.17 we deliver javascript and css through ResourceLoader. Check out ResourceLoader/Developing with ResourceLoader. Restart with registering you js file as a module, and then call  (where   is the name of the module you registered.

A dependency on  is implied as we use it everywhere, no need to declare that.