Skip to content

Instantly share code, notes, and snippets.

@cowboy
Forked from phiggins42/mesighs.js
Created June 25, 2010 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cowboy/453140 to your computer and use it in GitHub Desktop.
Save cowboy/453140 to your computer and use it in GitHub Desktop.
$.fn.format = function(opts){
var o = $.extend({}, defaults.format, opts), codez = formatCodes(o.locale);
return this.each(function(){
var me = $(this);
me[ me.is(":input") ? "val" : "text" ](function(i,v){
return formatNumber( v, o, codez );
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment