Forums: [SOLVED] (EditStarRating.js:49) TypeError: 'undefined' is not a function (evaluating '$('#star_'+hidden_id).live') - Forums

Jump to content

Page 1 of 1

[SOLVED] (EditStarRating.js:49) TypeError: 'undefined' is not a function (evaluating '$('#star_'+hidden_id).live')

#1 User is offline   iVoteSize 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 10-November 14

Posted 18 January 2015 - 08:01 PM

I've had no luck installing this StarRating plug in into my PHPRunner 8.0 (Build 23092 x64); instead I'm getting a:

(EditStarRating.js:49) TypeError: 'undefined' is not a function (evaluating '$('#star_'+hidden_id).live')


... error in my console (see attachment). Any suggestions are welcome (I have not yet have time to debug hidden_id).
0

#2 User is offline   iVoteSize 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 10-November 14

Posted 18 January 2015 - 08:47 PM

Solved (with help from http://api.jquery.com/live) by changing EditStarRating.js >> line 46, from:
$('#star_'+hidden_id).live('click',function(e) {

... to:
$('#star_'+hidden_id).on('click',function(e) {

0

Page 1 of 1


Fast Reply