google / google/material-design-lite

Applying is-invalid styling for a textarea

Open
#4,399 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
32.2k
Forks
4.9k
PR merge metrics
No merged PRs in 30d

Description

I am trying to apply the is-invalid styling for a textarea in the below manner.

```
$("#textareaid").parent().addClass("is-invalid");
```

I know this works for input type="text" but what about textarea element? This could be due to key differences in the way CSS is applied on the two types of elements. But I wished to know whether there could be a way of apply the "is-invalid" MDL styling for a textarea element.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.