Since Dryden Long suggested me to ask another question, if I want to know, how to change style of button if `<p>` tag is empty, I am asking.  
 So [this](https://stackoverflow.com/questions/23066720/change-style-of-button-element-if-text-field-is-empty) my question isn't duplicate.  

---

I want to change the style of `#removeBtn` (using css), if this

```
<p id='text' required></p>

```

is empty, something like

```
#text:empty + #removeBtn{
  border-color:#ff0000;
  background-color:#ff0000;
}

```

My `#removeBtn`

```
<input type="button"  Value="Remove all" onClick="deletePosts()" id="removeBtn">

```