Senator Guerra Souty original series calendar,replica hublot blue steel peach pointer collocation of rolex replica Rome digital scale, track type minute replica watches scale shows that the classical model is swiss replica watches incomparable, wearing elegant dress highlights.
mr-ponna.com

 

YOU ARE HERE: HOME Questions How to validate the textbox with only digits



Validate the textbox with only digits

View(s): 13657

How to validate the textbox with only digits?

Answer 1)

Using following Regular Expression and JavaScript:

function IsNumeric(input){ 
    var a = /^-{0,1}\d*\.{0,1}\d+$/; 
    return (a.test(input)); 
}

  Asked in:  Olivegreen   Expertise Level:  Intermediate
  Last updated on Thursday, 06 September 2012
3/5 stars (7 vote(s))

Register Login Ask Us Write to Us Help