SyntaxFix
Write A Post
Hire A Developer
Questions
parseInt didn't work for me in IE. So I simply used + on the variable you want as an integer.
var currentValue = $("#replies").text(); var newValue = +currentValue + 1; $("replies").text(newValue);