Anybody know if there is a way to get this to work as expected...
<style>
input { background-color:green; }
input[name*="_name"][value=""] { background-color:red; }
</style>
<input type="text" name="my_name" value="" />
That is, if the input is blank, the background is red, otherwise it is green. Without resorting to javascript events.
Seems that in at least firefox and chrome, the value attribute is not updated in the DOM when altering the value of the field?