I am using this plugin for jQuery.
The plugin tries to create an anchor (<a>
) tag, with a value=
attribute. However, it does not create the tag with any such attribute in my browser. Is this a jQuery
problem? Or an HTML problem? I'm not sure why it seems to be working for so many others, but not for me.
Here is the code I'm using:
$("<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);
This is supposed to create the following element:
<a class="ui-rating-star ui-rating-empty" title="1 Star"></a>
I am using jQuery v1.9.1, if that matters.