YourNameHere Posted October 11, 2009 Share Posted October 11, 2009 I am having trouble decrementing a number. here is my code: (Using jQuery) function subtract() { var pointsLeft = 35; pointsLeft =-- 1; $('#points').html(pointsLeft); } It's been a while since I used this operation so I am not sure what am I doing wrong? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.