I'm using this star-rating plugin
http://www.fyneworks.com/jquery/star-rating/ and the
call back function provided to allow for submission of forms onclick of rating star.
Code:
$(document).ready(function() {
$('form.entry_rating').rating( {
callback:function(value, link) {
alert(value);
}
});
});
However, once the callback is included I get an error I've been trying to track down for the past day and a half.
In IE the error thrown is "Object doesn't support this property or method" on Line 100 character 4.
In my JS debugger the plugin breaks on line 99
Code:
var n = (this.name || 'unnamed-rating').replace(/\[|\]/, "_");
I would guess that for some reason the form class is not being passed but I'm not sure about this. I can't us ID as my key because this is dynamic and always changing.
I can definitely say this is related to the callback function because when it is not included no errors occur. I've tried re-naming the form referenced in the function in a multitude of ways none of which seems to have had any affect.
Any advice would be welcome.
Thanks.