Is it possible to use a CSS selector to target an input that has a specific value?
Example: How can I target the input below based on the value=\"United States
value=\"United States
Refreshing attribute on events is a better approach than scanning value every tenth of a second...
http://jsfiddle.net/yqdcsqzz/3/
inputElement.onchange = function() { this.setAttribute('value', this.value); }; inputElement.onkeyup = function() { this.setAttribute('value', this.value); };