When I put this code outside of the <table>
...it will work.
<script type="text/javascript">
$(function(){
$("#stars-wrapper1").stars({
oneVoteOnly: true
});
});
</script>
<form>
<div id="stars-wrapper1">
<input type="radio" name="newrate" value="1" title="Very poor" />
<input type="radio" name="newrate" value="2" title="Poor" />
<input type="radio" name="newrate" value="3" title="Not that bad" />
<input type="radio" name="newrate" value="4" title="Fair" />
<input type="radio" name="newrate" value="5" title="Average" />
</div>
</form>
However, when I put this inside the
<table><tr><td>...</td></tr></table>Then, it will show the 1 2 3 4 5. Does anyone know what is wrong with the table?
<table width="100%" style="border: 0px none ;">
<tbody>
<tr>
<td style="width: 110px; vertical-align: top;" valign="top" align="right">
<form>
<div id="stars-wrapper1">
<input type="radio" name="newrate" value="1" title="Very poor" />
<input type="radio" name="newrate" value="2" title="Poor" />
<input type="radio" name="newrate" value="3" title="Not that bad" />
<input type="radio" name="newrate" value="4" title="Fair" />
<input type="radio" name="newrate" value="5" title="Average" />
</div>
</form>
</td>
<td style="padding-left: 20px;" valign="top"><div class="resultItem" style="float: left;">
stutt here
</div></td>
</tr>
</tbody>
</table>
Edit: I am using a JQUERY Star rating plguin. http://orkans-tmp.22web.net/star%5Frating/index.html#demos
It allows me to have 5 stars for rating.