KeyDown in jquery not updating when pressed
<p>I am trying to get the div to change the font size and update it on the screen. The following code works but there is a problem when you press a key you need to press another key to register the last key was pressed i dont know want that to happen. How would i make it update as soon as you press a key? </p>

<pre><code> $('#font_size_title').keydown(function() { 
 var font_size_title = $(this).val(); 
 $('#preview_title').css("font-size",font_size_title);
 }); 
</code></pre>
