Why this function is not working when i click on the Rate me button?
function incrementValue(){
var value = parseInt($("#rateme").value, 10);
value = isNaN(value) ? 0 : value;
value++;
$("#rateme").value = value;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<ul>
<li>
<a onclick="incrementValue()">Rate me</a><input type="text" id="rateme" value="50" />
</li>
</ul>