fix error with numeric inputs

Fixes the the bug in Chrome 33+ : 

Uncaught InvalidStateError: Failed to read the 'selectionStart' property from 'HTMLInputElement': The input element's type ('number') does not support selection.