you are trying to substract an int from a string. You must use
.replace('px', '');
in order to get a number, and then do the math operations.
0
solved Issue on type in jQuery [closed]
you are trying to substract an int from a string. You must use
.replace('px', '');
in order to get a number, and then do the math operations.
0
solved Issue on type in jQuery [closed]