• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem in regular expression

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator



this code have a serious problem.. its designed to validate dates.. but even when a validate date is entered .. the helptext is not cleared..


the second problem is .. the chrome's interpreter is saying that my regular expression for validating email is out of range.. i checked the regular expression from a diffent file which is working .. both expressions are same.. but it alarming only on my html file..
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As you saw in a previous post, using code tags and proper indentation can usually reveal issues a lot faster than unformatted code. Please be sure to UseCodeTags when posting code.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

deepak bhai wrote:this code have a serious problem.. its designed to validate dates.. but even when a validate date is entered .. the helptext is not cleared..


That's true; your other validations have code which says "helpText.innerHTML = something" and your date validation doesn't have that.
 
deepak bhai
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
my date validation code is not validating the date itself, its just sending it to validateRegEx function with the helpmessage. where if the date is invalid then the helptext.innerHTML value will be set as helpmessage. other wise it will cleared. my other codes are setting helptext.innerHTML in them because they are not sending there control to validateRegEx function except the email validation..
 
Everybody's invited. Except this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic