March 2016
-
JavaScript: Outputting a Number in Traditional Currency Format
The requirements I will describe in this article are to have JavaScript format user-input numbers as traditional currency. This means to show two decimal places (with or without automatic rounding), commas as thousands separators, and with or without a preceding currency symbol like: $ 12,345.67 or without the currency sign as: 12,345.67
-
Tips: Get your Web Forms Money Fields Looking Great with jQuery, Bootstrap3 and FontAwesome
Here is a quick overview of how to make number fields in your HTML form look more fancy using Bootstrap3 and jQuery. In particular I will show how to use Bootstrap markup to prepend a Bootstrap icon to one of the text input field on your form. Also I’ll show how to add a jQuery/JavaScript…
-
CSS and ASP.NET: How to Convert Numbers from your Database into a Human-Friendly Format
This is a short post to show how to make numerical data coming from your database more human readable. This means separating a large number by commas every three digits, adding two decimal places, and maybe even a dollar sign if you are displaying money amounts. The solution I show is a mix of CSS and ASP.NET.