This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Validation message not working same for Input Text and Text Area

Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have three fields, one is drop down, one is input text and another is text area. I am doing jquery validation on input text and text area such that when we select the “Yes” option from the drop down and not entering anything in the input text and text area I am doing the making Input text and text area to red background and showing validation messages on the top of the page.

Now the issue is when I select the value from “Yes” to “No” or “default” the color of the Input text changing from red goes away and the validation message also goes away, which is correct. But the background of text area still red and the validation messages does not go away when we select drop down value from “Yes” to “No”. I want the text area works exactly same like Input text.

I would appreciate if someone can help me out to resolve this.

Whoever got anywhere by being normal? Just ask this exceptional tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic