Inline `++` in Javascript not working
javascript, jquery
Solution
There's nothing particular to jQuery about this. `++` increments a variable. You are trying to increment the return value of a function call.
Problem
Astonished to find out that a line like this : ``` $('#TextBox').val(parseInt($('#TextBox').val())++ ); ``` Will not work ! I've done some tests, it plays out to the conclusion that the inline `++` doesn't work (in Javascript as a whole ? Or simply in my example ?). Here's a test with three pieces of code, it seems that `++` is ok with a variable but not inline. So, no inline `++` for us in Javascript?