Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Validation message not working same for Input Text and Text Area  RSS feed

Sam Saha
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.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!