Using JS and CSS :not pseudoclass
input {_x000D_
font-size: 13px;_x000D_
padding: 5px;_x000D_
width: 100px;_x000D_
}_x000D_
_x000D_
input[value=""] {_x000D_
border: 2px solid #fa0000;_x000D_
}_x000D_
_x000D_
input:not([value=""]) {_x000D_
border: 2px solid #fafa00;_x000D_
}
_x000D_
<input type="text" onkeyup="this.setAttribute('value', this.value);" value="" />_x000D_
_x000D_
_x000D_