OnRate () UI semantic rating

Can someone please give me an example callback function onRate()

( http://semantic-ui.com/modules/rating.html#/settings ) for the rating widget in the semantic interface. I tried everything :(

etc ...


I don't know if it should be used in javascript or in a div for the rating ( <div class="ui rating">

. Any help would be greatly appreciated.


source to share

2 answers

You have to use the settings API :

  .rating('setting', 'onRate', function(value) {
      // your amazing code here




Something like that

        maxRating: 5,
        onRate: function (rating) {




All Articles