当前位置: 动力学知识库 > 问答 > 编程问答 >

javascript - K2 onclick add rating 5 onclick

问题描述:

As the title say i want to make an extra field with an onclick function that adds 5 stars of rating in K2

Like this:

<a class="add-rating">Click me</button>

<script>

var add = ('.add-rating');

add.click(function() {

+1 vote in the rating ;

});

</script>

something like that i have no idea how to do this i have been trying to make it work for a couple of weeks now and i will be very greatful if you guys could hep me !

网友答案:

Try this extension with K2

extensions.joomla.org/extensions/extension-specific/k2-extensions/19253

分享给朋友:
您可能感兴趣的文章:
随机阅读: