aspx Tutorial

NET Articles,jQuery demo, asp.net with jQuery, online tutorial,Jquery, SilverLight, Javascript, asp.net,JSON, MVC,.NET Articles,demo, Web Services,
Advertise Here

Toolbar

Get our toolbar!

Advertize



Posted by Aamir Hasan   on Friday, January 14, 2011 Total Views:  

The jQuery Format Currency Plugin is a simple to format currency of any number.

Here’s a simple way to use this plug-in your HTML or ASP.NET Pages.

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="Scripts/jquery.formatCurrency-1.4.0.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $("#div1").text("$33").formatCurrency();
            $("#div2").text("$100").formatCurrency();
            $("#div3").text("$0.200").formatCurrency();
            $("#div4").text("$40000000").formatCurrency();
            $("#div5").text("$5000000000").formatCurrency();
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2>
            Formatted Currency</h2>
        <div id="div1">
        </div>
        <div id="div2">
        </div>
        <div id="div3">
        </div>
        <div id="div4">
        </div>
        <div id="div5">
        </div>
    </div>
    </form>
</body>
</html>


Output

Download

Format-Currency.zip (132.72 kb)

See live demo

Tags:
Protected by Copyscape Online Plagiarism Tool

Comments (1) -

Thuy Pujols
Thuy Pujols United States
7/13/2015 8:10:31 AM #

Its like you learn my mind! You appear to understand a lot about this, such as you wrote the guide in it or something. I think that you just could do with some p.c. to drive the message home a little bit, but other than that, this is excellent blog. An excellent read. I'll definitely be back.|

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

Advertizement 1
Advertizement 2
Advertizement 3
Advertizement 4
Advertizement 5