[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.

http://jsfiddle.net/hyZu4/

0

solved Issue on type in jQuery [closed]