v24
Ask or search…
K
Links
Comment on page

Get User Vote

<Array|null> getUserVote()
Returns plain object of index and votes (each index starts with 0) if user has voted. Otherwise, returns null.
Example
Output
var vote = element.getUserVote();
if (vote !== null) {
console.log('User voted for option(s): ', vote);
} else {
console.log('User has not voted yet!');
{
0: 3
}