$("#rateit9").rateit is not a function

Jan 5, 2011 at 5:41 PM

Awesome plugin.  Easy to implement even for non-javascript people like myself.  That said, I have a javascript question.  Don't understand why I'm getting the error: $("#rateit9").rateit is not a function.  I know you mentioned there was the rated, reset and hover events that are built in.  I've got the reference to the js script at the bottom of my page, with the attempts to call $('#rateit9').rateit('value', 3) in the code above it.  What am I missing?

Jan 5, 2011 at 6:28 PM

Figured out the answer to my own question.  I'm using Telerik controls on the page and had to register the jquery.rateit.js file in ScriptRegistrar.  Thanks.  The plugin is totally Rad!

Jan 6, 2011 at 9:01 AM

Thanks!

May 17, 2011 at 1:21 PM

I think the rateit function should be called once the document is ready.

The last part of the code in the plugin should be (in the min version)

i(function(){i("div.rateit").rateit();});


Jun 11, 2011 at 9:40 AM

Hi row1,

The whole thing (including that line), is only called once the document is ready.

Gidon