I'm trying to automatically format a number with the proper localization with Globalize. When the users inputs a numeric value I need Globalize to read it, parse it in the right format, and then output it in the field where the user has entered it.
I've tried like so:
$(document).on('change','.format-me',function(){
var value = $(this).val();
Globalize.culture("en-US");
console.log(Globalize.format(value));
});
But it is not working, as the logged number looks exactly the same as the one entered by the user. Why isn't Globalize changing the format as needed?