Add javascript pixel values?

remove px from strings, add values, then add px back

  (parseInt("40px".replace(/px/,""))+60)+"px"

Leave a Comment