I have made a long research but i have not found a similar case.
I am using jeditable plugin for a project and i needed to create an input type number
First i have created my input type number in my jquery.jeditable.js
number: {
element : function(settings, original) {
var input = $('<input type="number" step="0.00">');
if (settings.width != 'none') { input.attr('width', settings.width); }
if (settings.height != 'none') { input.attr('height', settings.height); }
/* https://bugzilla.mozilla.org/show_bug.cgi?id=236791 */
//input[0].setAttribute('autocomplete','off');
input.attr('number','off');
$(this).append(input);
return(input);
}
},
and then i have put the script in my html file
$('.number').editable(function(value, settings) {
console.log(this);
console.log(value);
console.log(settings);
return(value);
}, {
type : 'number',
style : "inherit"
});
My html
<p class="number" style="text-align: right;">000,00</p>
The problem is that i dont know how to put decimal and thousand separator working in all the browsers. As you can see above i have just put step="0.00 but this works just in FF
can you help me on how to add decimal and thousand separator working correctly?
Thanks