There are several similar headings here (for example, here , here, and here ), but I refuse to find this complicated, as they point out. The following is the value of "20px". How can I make him return "20"?
var base=$('#id').css('right');
source
share