I am using JQuery raty inside JQuery datatable. It works fine when the browser is at its full width. While testing the responsiveness as the columns of the datatable is collpsed, the stars of raty disappears.
How do I fix this?
HTML:
<td>
<span class="rating" data-score=""></span>
</td>
JS:
$('span.rating').raty({
half: true,
starHalf:'raty/images/star-half.png',
starOff:'raty/images/star-off.png',
starOn:'raty/images/star-on.png',
readOnly: true,
score: function () {
return $(this).attr('data-score');
}
});