JSFiddle - React, Tailwind, and code Playground

HTML

<input>
<input>
<input>

JavaScript

$('input').bind('keyup change',function() {
    $(this).attr('value',this.value)
});

$('input[value=foo]').live('keyup change',function(){
    $(this).css('color','red')
})