From e55f5dabc36624d02b2b6dccca8eeb60d90e27fa Mon Sep 17 00:00:00 2001 From: Tom Holder Date: Mon, 25 Mar 2013 22:05:18 +0000 Subject: [PATCH] Fixes plugin not working with jquery 1.9. Probably needs more work doing to it. --- jquery.rating.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/jquery.rating.js b/jquery.rating.js index d039061..9f692e3 100644 --- a/jquery.rating.js +++ b/jquery.rating.js @@ -173,11 +173,12 @@ // only convert options with a value if(this.value!="") { - $("").prop({ + var a = $("").prop({ className: "ui-rating-star ui-rating-empty", title: $(this).text(), // perserve the option text as a title. - value: this.value // perserve the value. - }).appendTo(elm); + }) + a.attr('value', this.value); + a.appendTo(elm); } }); // create the cancel