Use radix when calling parseint. `parseInt( $elm.attr( "value" ), 10 )`