how to change combobox values on keypress using jquery
<p>this is not working</p>

<pre><code>if($(".foo").is(':focus')){

   // do something

}
</code></pre>

<p>To change values on keypress:</p>

<pre><code>$(".foo").bind("keypress", function(e){

   $(this).attr('value', 'bar'); 

})
</code></pre>
