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