I need to do a numeric calculation based on CSS properties. However, when I use this to get info:
$(this).css(\'marginBottom\')
it returns
For improving accepted answer use this:
Number($(this).css('marginBottom').replace(/[^-\d\.]/g, ''));