skip to main | skip to sidebar

C#, ASP.Net, Ajax, Javascript, SQL Help

29 July 2008

Allow two decimal palace in textBox

function AllowOnlyTwoDecimalPlace(txtBox)
{
var num = parseFloat(txtBox.value);
txtBox.value = num.toFixed(2);
if (txtBox.value == 'NaN'){
txtBox.value = '';}

}
Posted by Arun.S at 5:00 AM
Labels: JavaScript

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Other Blogs

  • Client Report
  • zoomtoreports

Blog Archive

  • ►  2012 (2)
    • ►  May (2)
  • ►  2011 (7)
    • ►  December (1)
    • ►  March (6)
  • ►  2009 (13)
    • ►  November (2)
    • ►  October (2)
    • ►  August (1)
    • ►  June (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (3)
    • ►  January (2)
  • ▼  2008 (27)
    • ►  December (3)
    • ►  November (4)
    • ►  October (6)
    • ►  September (6)
    • ►  August (4)
    • ▼  July (4)
      • Identify GridView RowIndex
      • Allow two decimal palace in textBox
      • Focus to the control
      • To Identify Gridview Row Index in Row command

About Me

Arun.S
View my complete profile