Been trying to convert the following to number:
1
You can adding a + before the string without using parseInt and parseFloat and radix, Simply
+
sample:
var votevalue = +$('button').data('votevalue'); alert(typeof(votevalue));