I get the padding-left property
var padding = $(".fixed_block").css("padding-left"); But the variable is written the value of + px. How to get only the value so that you can add a number to it?
I get the padding-left property
var padding = $(".fixed_block").css("padding-left"); But the variable is written the value of + px. How to get only the value so that you can add a number to it?
Source: https://ru.stackoverflow.com/questions/592082/
All Articles
var padding = parseInt($(".fixed_block").css("padding-left"));- Visman Nov.