I am looking for a nice, open source, method in js/jquery to add number input fields to my page.
I am located in Norway, so my users want to type the decimal separator with comma (e.g. 1 002,23). This is not supported for the standard input with number type.
<input type="number"></input>
So I am forced to use type="text", but the I loose the ability to specify max, min, and step and react to invalid input. All of which are necessary. I also would like to support both Norwegian and English formats detected from the user's browser. Ideally, it should be something as smooth as the number input on Model Driven apps. The input field should also run on the Portal (or is it power page now?) without adding a lot of extra overhead. I also need to be able to create and delete the inputs on the fly without reloading the page, ideally through a jquery-interface.
I did stumble upon JQuery UI that is already loaded on the page, but this library has functionality for a "spinner", not a pure number input and is hard to mould into the existing layout of the page (yes I am retrofitting this functionality).
Tips to other internet sources, snippets of code or anything to help advance my quest for a simple to implement localized number input is welcome!