I am trying to add or subtract 1 in an input but I do not finish it. the code that I have is this:
onclick="$('#StockPagina').val($('#StockPagina').val()+1).change()"
this changes the value of the input StockPagina but I add a 1 at the end instead of adding one with what as I give it instead of putting 1,2,3,4 puts me 01,011,0111
Can not I just simply add one to the value that is there? Is there anything like the php ++? If there is something type ++ there is also the - to subtract?
Thank you very much for your help.