How can I add these classes?
.error textarea {
border-color: red;
border-width: 5px;
}
.error .counter {
color: red;
}
to the addclass method, I'm trying this but it does not work for me
$("textarea").addClass("error textarea")
$("textarea").addClass("error counter")