Changed to trigger a Numeric keyboard on both iOS and Android devices.
Replaces the JavaScript .closest(<selector>) function to work with Android 4.4.2