views:

152

answers:

2

What version of jquery that richfaces(3.3.3.CR1) supports. How to find it?

+1  A: 

When viewing any webpage that has jQuery you can enter the following into your Firebug/Web Inspector console to be told the version:

$.fn.jquery

For example, Stack Overflow is using 1.3.2

akamike
Iam getting this error for this query $.fn.jqueryTypeError: Cannot read property 'jquery' of undefinedWhat does it mean?
Kalpana
That means jQuery has not been defined and therefore is not being used on the site you are testing on.
akamike
+1  A: 

Richfaces uses the $ variable for something else, so you can't use it for jQuery. Instead you have to use the jQuery keyword. Therefore to find the version, use:

jQuery.fn.jquery