Is there any way to define an <input>
that shows a keyboard input that only allows numbers and the decimal point (or comma for international users)?
<input type='tel'>
shows phone crap I don't need, and no decimal point
<input type='number' pattern='[0-9]*'>
shows all numbers, but no decimal point
What can I do to get the input I need?
If you were doing this in a bona fide iOS app, you could probably add buttons of your own on top of the keyboard, based on this question, which is about the accessory view but the same process would work.
Otherwise, IamChuckB is right and the five keyboard types given in the Apple Developer's Library are exhaustive.
Please see my project of the cross-browser filter of value of the text input element on your web page using JavaScript language: Input Key Filter . You can filter the value as an integer number, a float number, or write a custom filter, such as a phone number filter. See an example of code of input a float number
Also see my page "Float field:" of the example of the input key filter
=> It will allow only single decimal dot (.)
=> It will only allow three digit decimal values after dot. you can modified by changing to {1,3} into below RegEx.
You can try this attribute to your type="number" field:
this will allow only digits with/without a decimal point and the floating numbers on the right.