Thursday, June 10, 2010

Address Validator using Java Script

//for Address
function Address(evt) {

evt = (evt) ? evt : window.event
var charCode = (evt.which) ? evt.which : evt.keyCode
//alert(charCode)
if((charCode > 32 & charCode < 38)|(charCode > 38 & charCode < 44)|charCode==31 |(charCode > 57 & charCode < 65) |(charCode > 90 & charCode < 97)|(charCode > 122 & charCode < 127) ){

return false
}
status = ""
return true
}

2 comments:

  1. Can you post the validation code for email id?

    ReplyDelete
  2. client side email validator
    http://subinsuresh.blogspot.com/2010/08/javascript-function-for-email.html

    serverside email validator
    http://subinsuresh.blogspot.com/2010/08/serverside-email-validator.html

    ReplyDelete