title: Trying to trim 'px' off a string?
body: <p>I'm trying to wrap up my script placeholderRX. All I need to do is get the 'px' off the end of the string returned from this call.</p>
  
  <pre><code>$(form).children('.inputSpan').each(function() {
     var $input = $(this)
     var $padding = $input.children('.input').css('padding-left');
  });
  </code></pre>
  
  <p>This returns "6px". I want to trim the 6 px off and make sure it's an integer so I can then add 2 pixels to it and feed it to the css rule. I'm new to string manipulations in javascript. Help me out!</p>